Skip to content

Commit 6dd33fd

Browse files
committed
Added Registry UML
1 parent d0616c7 commit 6dd33fd

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

Structural/FluentInterface/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ To write code that is easy readable just like sentences in a natural language (l
99
* Doctrine2's QueryBuilder works something like that example class below
1010
* PHPUnit uses fluent interfaces to build mock objects
1111
* Yii Framework: CDbCommand and CActiveRecord use this pattern, too
12+
13+
## UML Diagram
14+
15+
![Alt FluentInterface UML Diagram](uml/uml.png)

Structural/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,3 @@ entities.
1414
* [FluentInterface](FluentInterface) [:notebook:](http://en.wikipedia.org/wiki/Fluent_interface)
1515
* [Proxy](Proxy) [:notebook:](http://en.wikipedia.org/wiki/Proxy_pattern)
1616
* [Registry](Registry) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)
17-
18-
## UML Diagram
19-
20-
![Alt FluentInterface UML Diagram](uml/uml.png)

Structural/Registry/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ an abstract class with only static methods (or using the Singleton pattern)
99

1010
* Zend Framework: `Zend_Registry` holds the application's logger object, front controller etc.
1111
* Yii Framework: `CWebApplication` holds all the application components, such as `CWebUser`, `CUrlManager`, etc.
12+
13+
## UML Diagram
14+
15+
![Alt Registry UML Diagram](uml/uml.png)

Structural/Registry/uml/uml.png

5.13 KB
Loading

Structural/Registry/uml/uml.svg

+1
Loading

Structural/Registry/uml/uml.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@startuml
2+
3+
abstract class Registry {
4+
#static $storedValues : array;
5+
+static function set($key : string, $value : mixed)
6+
+static function get($key : string)
7+
}
8+
9+
@enduml

0 commit comments

Comments
 (0)