mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-25 02:33:36 +02:00
Added Composite UML
This commit is contained in:
BIN
Structural/Bridge/uml/uml.png
Normal file
BIN
Structural/Bridge/uml/uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
1
Structural/Bridge/uml/uml.svg
Normal file
1
Structural/Bridge/uml/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 10 KiB |
35
Structural/Bridge/uml/uml.txt
Normal file
35
Structural/Bridge/uml/uml.txt
Normal file
@ -0,0 +1,35 @@
|
||||
@startuml
|
||||
class Assemble {
|
||||
+work()
|
||||
}
|
||||
|
||||
class Car {
|
||||
+__construct()
|
||||
+manufacture()
|
||||
}
|
||||
|
||||
class Motorcycle {
|
||||
+__construct()
|
||||
+manufacture()
|
||||
}
|
||||
|
||||
class Produce {
|
||||
+work()
|
||||
}
|
||||
|
||||
abstract class Vehicle {
|
||||
protected workShop1
|
||||
protected workShop2
|
||||
+__construct()
|
||||
+manufacture()
|
||||
}
|
||||
|
||||
interface Workshop {
|
||||
+work()
|
||||
}
|
||||
|
||||
Workshop <|.. Assemble
|
||||
Workshop <|.. Produce
|
||||
Vehicle <|.. Motorcycle
|
||||
Vehicle <|.. Car
|
||||
@enduml
|
Reference in New Issue
Block a user