mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-25 02:02:26 +01:00
35 lines
429 B
Plaintext
35 lines
429 B
Plaintext
|
@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
|