Added Decorator UML

This commit is contained in:
John Webb
2014-07-29 10:18:51 -05:00
parent 729d093391
commit 3a7e38f91d
7 changed files with 36 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@@ -0,0 +1,29 @@
@startuml
interface RendererInterface {
+renderData()
}
abstract class Decorator {
# protected $wrapped : RendererInterface
+__construct(RendererInterface $wrappable)
}
class RenderInJson {
+renderData()
}
class RenderInXml {
+renderData()
}
class Webservice {
protected $data
+__construct($data)
+renderData()
}
Decorator <|.. RenderInJson
Decorator <|.. RenderInXml
RendererInterface <|.. Decorator
RendererInterface <|.. Webservice
@enduml