Added Proxy UML

This commit is contained in:
John Webb
2014-07-29 11:17:21 -05:00
parent d2dcb197cd
commit d0616c7937
4 changed files with 23 additions and 0 deletions

View File

@@ -7,3 +7,7 @@ To interface to anything that is expensive or impossible to duplicate.
## Examples
* 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
## UML Diagram
![Alt Proxy UML Diagram](uml/uml.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -0,0 +1,18 @@
@startuml
class Record {
#$data : array|null
+__construct($data = null)
+__set($name : string, $value : mixed)
+__get($name : string)
}
class RecordProxy {
#$isDirty : bool
#$isInitialized : bool
+__construct(data : array)
+__set($name : string, $value : mixed)
}
Record <|.. RecordProxy
@enduml