1
0
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:
John Webb 2014-07-29 09:25:10 -05:00
parent bd103f996c
commit 4a2c2ef5bd
5 changed files with 75 additions and 0 deletions

@ -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">
![Alt Adapter UML Diagram](uml.svg)

File diff suppressed because one or more lines are too long

After

(image error) Size: 9.8 KiB

@ -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

File diff suppressed because one or more lines are too long

After

(image error) Size: 10 KiB

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