added flyweight pattern

This commit is contained in:
janukobytsch
2015-02-02 00:11:48 +01:00
parent 27b9c2b3cf
commit d97f9831d5
4 changed files with 121 additions and 0 deletions

View 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);
}