mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 04:00:18 +02:00
Added DependencyInjection UML
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 21 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
@@ -4,12 +4,12 @@ class Assemble {
|
||||
}
|
||||
|
||||
class Car {
|
||||
+__construct()
|
||||
+__construct(Workshop $workShop1, Workshop $workShop2)
|
||||
+manufacture()
|
||||
}
|
||||
|
||||
class Motorcycle {
|
||||
+__construct()
|
||||
+__construct(Workshop $workShop1, Workshop $workShop2)
|
||||
+manufacture()
|
||||
}
|
||||
|
||||
@@ -18,9 +18,9 @@ class Produce {
|
||||
}
|
||||
|
||||
abstract class Vehicle {
|
||||
protected workShop1
|
||||
protected workShop2
|
||||
+__construct()
|
||||
#workShop1
|
||||
#workShop2
|
||||
#__construct()
|
||||
+manufacture()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user