PHP7 Flyweight

This commit is contained in:
Dominik Liebler
2016-09-23 10:34:53 +02:00
parent de196765cf
commit 2e287acdf7
7 changed files with 343 additions and 336 deletions

View File

@@ -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;
}