diff --git a/Structural/Flyweight/uml/Flyweight.uml b/Structural/Flyweight/uml/Flyweight.uml new file mode 100644 index 0000000..5d53b0f --- /dev/null +++ b/Structural/Flyweight/uml/Flyweight.uml @@ -0,0 +1,27 @@ + + + PHP + \DesignPatterns\Structural\Flyweight\FlyweightFactory + + \DesignPatterns\Structural\Flyweight\CharacterFlyweight + \DesignPatterns\Structural\Flyweight\FlyweightFactory + \DesignPatterns\Structural\Flyweight\FlyweightInterface + + + + + + + + + + + + Fields + Constants + Constructors + Methods + + private + + diff --git a/Structural/Flyweight/uml/uml.png b/Structural/Flyweight/uml/uml.png new file mode 100644 index 0000000..1209ab4 Binary files /dev/null and b/Structural/Flyweight/uml/uml.png differ diff --git a/Structural/Flyweight/uml/uml.svg b/Structural/Flyweight/uml/uml.svg new file mode 100644 index 0000000..b46aa2f --- /dev/null +++ b/Structural/Flyweight/uml/uml.svg @@ -0,0 +1,466 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + name + + + + + + + + + + + + + __construct(name) + + + + + + + + + + + + + draw(font) + + + + + + + + + + + + + CharacterFlyweight + + + CharacterFlyweight + + + + + + + + + + + + + + + + name + + + + + + + + + + + + + __construct(name) + + + + + + + + + + + + + draw(font) + + + + + + + + + + + + + CharacterFlyweight + + + CharacterFlyweight + + + + + + + + + + + + + + + + + + + pool + + + + + + + + + + + + + __get(name) + + + + + + + + + + totalNumber() + + + + + + + + + + + + + FlyweightFactory + + + FlyweightFactory + + + + + + + + + + + + + + + + pool + + + + + + + + + + + + + __get(name) + + + + + + + + + + totalNumber() + + + + + + + + + + + + + FlyweightFactory + + + FlyweightFactory + + + + + + + + + + + + + + + + + + + draw(extrinsicState) + + + + + + + + + + + + + FlyweightInterface + + + FlyweightInterface + + + + + + + + + + + + + + + + draw(extrinsicState) + + + + + + + + + + + + + FlyweightInterface + + + FlyweightInterface + + + + + + + + +