mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
added flyweight pattern
This commit is contained in:
12
Structural/Flyweight/FlyweightInterface.php
Normal file
12
Structural/Flyweight/FlyweightInterface.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Structural\Flyweight;
|
||||
|
||||
/**
|
||||
* An interface through which flyweights can receive and act on extrinsic state
|
||||
*/
|
||||
interface FlyweightInterface {
|
||||
|
||||
public function draw($extrinsicState);
|
||||
|
||||
}
|
Reference in New Issue
Block a user