Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0616c7

Browse files
committed
Added Proxy UML
1 parent d2dcb19 commit d0616c7

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

Structural/Proxy/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ To interface to anything that is expensive or impossible to duplicate.
77
## Examples
88

99
* Doctrine2 uses proxies to implement framework magic (e.g. lazy initialization) in them, while the user still works with his own entity classes and will never use nor touch the proxies
10+
11+
## UML Diagram
12+
13+
![Alt Proxy UML Diagram](uml/uml.png)

Structural/Proxy/uml/uml.png

10.7 KB
Loading

Structural/Proxy/uml/uml.svg

Lines changed: 1 addition & 0 deletions
Loading

Structural/Proxy/uml/uml.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@startuml
2+
3+
class Record {
4+
#$data : array|null
5+
+__construct($data = null)
6+
+__set($name : string, $value : mixed)
7+
+__get($name : string)
8+
}
9+
10+
class RecordProxy {
11+
#$isDirty : bool
12+
#$isInitialized : bool
13+
+__construct(data : array)
14+
+__set($name : string, $value : mixed)
15+
}
16+
17+
Record <|.. RecordProxy
18+
@enduml

0 commit comments

Comments
 (0)