mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-03 20:45:31 +02:00
Testing embedding of svg in markdown
This commit is contained in:
parent
bd103f996c
commit
4a2c2ef5bd
@ -8,3 +8,8 @@ To translate one interface for a class into a compatible interface. An adapter a
|
||||
|
||||
* DB Client libraries adapter
|
||||
* using multiple different webservices and adapters normalize data so that the outcome is the same for all
|
||||
|
||||
## UML Diagram
|
||||
|
||||
<img src="uml.svg" alt="Adapter UML Diagram">
|
||||

|
1
Structural/Adapter/uml.svg
Normal file
1
Structural/Adapter/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After (image error) Size: 9.8 KiB |
33
Structural/Adapter/uml.txt
Normal file
33
Structural/Adapter/uml.txt
Normal file
@ -0,0 +1,33 @@
|
||||
@startuml
|
||||
interface PaperBookInterface {
|
||||
+turnPage()
|
||||
+open()
|
||||
}
|
||||
|
||||
interface EBookInterface {
|
||||
+pressNext()
|
||||
+pressStart()
|
||||
}
|
||||
|
||||
class Book {
|
||||
+open()
|
||||
+turnPage()
|
||||
}
|
||||
|
||||
class Kindle {
|
||||
+pressNext()
|
||||
+pressStart()
|
||||
}
|
||||
|
||||
class EBookAdapter {
|
||||
#eBook : EBookInterface
|
||||
+__construct(ebook : EBookInterface)
|
||||
+open()
|
||||
+turnPage()
|
||||
}
|
||||
|
||||
PaperBookInterface <|.. Book
|
||||
PaperBookInterface <|.. EBookAdapter
|
||||
EBookInterface <|.. Kindle
|
||||
EBookAdapter o-- EBookInterface
|
||||
@enduml
|
1
Structural/Bridge/uml.svg
Normal file
1
Structural/Bridge/uml.svg
Normal file
File diff suppressed because one or more lines are too long
After (image error) Size: 10 KiB |
35
Structural/Bridge/uml.txt
Normal file
35
Structural/Bridge/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
|
Loading…
x
Reference in New Issue
Block a user