mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 09:11:17 +02:00
Added Proxy UML
This commit is contained in:
@@ -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
|
||||
|
||||

|
BIN
Structural/Proxy/uml/uml.png
Normal file
BIN
Structural/Proxy/uml/uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
1
Structural/Proxy/uml/uml.svg
Normal file
1
Structural/Proxy/uml/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.2 KiB |
18
Structural/Proxy/uml/uml.txt
Normal file
18
Structural/Proxy/uml/uml.txt
Normal 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
|
Reference in New Issue
Block a user