diff --git a/Structural/FluentInterface/README.md b/Structural/FluentInterface/README.md index 7b605a4..2ed92d3 100644 --- a/Structural/FluentInterface/README.md +++ b/Structural/FluentInterface/README.md @@ -9,3 +9,7 @@ To write code that is easy readable just like sentences in a natural language (l * Doctrine2's QueryBuilder works something like that example class below * PHPUnit uses fluent interfaces to build mock objects * Yii Framework: CDbCommand and CActiveRecord use this pattern, too + +## UML Diagram + +![Alt FluentInterface UML Diagram](uml/uml.png) \ No newline at end of file diff --git a/Structural/README.md b/Structural/README.md index 8fe74a4..6def831 100644 --- a/Structural/README.md +++ b/Structural/README.md @@ -14,7 +14,3 @@ entities. * [FluentInterface](FluentInterface) [:notebook:](http://en.wikipedia.org/wiki/Fluent_interface) * [Proxy](Proxy) [:notebook:](http://en.wikipedia.org/wiki/Proxy_pattern) * [Registry](Registry) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) - -## UML Diagram - -![Alt FluentInterface UML Diagram](uml/uml.png) \ No newline at end of file diff --git a/Structural/Registry/README.md b/Structural/Registry/README.md index 39a2661..840d2cf 100644 --- a/Structural/Registry/README.md +++ b/Structural/Registry/README.md @@ -9,3 +9,7 @@ an abstract class with only static methods (or using the Singleton pattern) * Zend Framework: `Zend_Registry` holds the application's logger object, front controller etc. * Yii Framework: `CWebApplication` holds all the application components, such as `CWebUser`, `CUrlManager`, etc. + +## UML Diagram + +![Alt Registry UML Diagram](uml/uml.png) \ No newline at end of file diff --git a/Structural/Registry/uml/uml.png b/Structural/Registry/uml/uml.png new file mode 100644 index 0000000..3697b8e Binary files /dev/null and b/Structural/Registry/uml/uml.png differ diff --git a/Structural/Registry/uml/uml.svg b/Structural/Registry/uml/uml.svg new file mode 100644 index 0000000..fe0991d --- /dev/null +++ b/Structural/Registry/uml/uml.svg @@ -0,0 +1 @@ +Registrystatic $storedValues : array;static function set($key : string, $value : mixed)static function get($key : string) \ No newline at end of file diff --git a/Structural/Registry/uml/uml.txt b/Structural/Registry/uml/uml.txt new file mode 100644 index 0000000..483e60f --- /dev/null +++ b/Structural/Registry/uml/uml.txt @@ -0,0 +1,9 @@ +@startuml + +abstract class Registry { + #static $storedValues : array; + +static function set($key : string, $value : mixed) + +static function get($key : string) +} + +@enduml \ No newline at end of file