mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-26 06:19:20 +02:00
PHP7 Flyweight
This commit is contained in:
@@ -2,13 +2,7 @@
|
||||
|
||||
namespace DesignPatterns\Structural\Flyweight;
|
||||
|
||||
/**
|
||||
* An interface through which flyweights can receive and act on extrinsic state.
|
||||
*/
|
||||
interface FlyweightInterface
|
||||
{
|
||||
/**
|
||||
* @param string $extrinsicState
|
||||
*/
|
||||
public function draw($extrinsicState);
|
||||
public function render(string $extrinsicState): string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user