diff --git a/Structural/FluentInterface/uml/uml.png b/Structural/FluentInterface/uml/uml.png new file mode 100644 index 0000000..a1b6b5e Binary files /dev/null and b/Structural/FluentInterface/uml/uml.png differ diff --git a/Structural/FluentInterface/uml/uml.svg b/Structural/FluentInterface/uml/uml.svg new file mode 100644 index 0000000..f7c3013 --- /dev/null +++ b/Structural/FluentInterface/uml/uml.svg @@ -0,0 +1 @@ +Sql$fields : array$from : array$where : arrayselect(array $fields = array())from($table : string, $alias : string)where($condition : string)getQuery() \ No newline at end of file diff --git a/Structural/FluentInterface/uml/uml.txt b/Structural/FluentInterface/uml/uml.txt new file mode 100644 index 0000000..17a76e2 --- /dev/null +++ b/Structural/FluentInterface/uml/uml.txt @@ -0,0 +1,13 @@ +@startuml + +class Sql { + #$fields : array + #$from : array + #$where : array + +select(array $fields = array()) + +from($table : string, $alias : string) + +where($condition : string) + +getQuery() +} + +@enduml \ No newline at end of file diff --git a/Structural/README.md b/Structural/README.md index 6def831..8fe74a4 100644 --- a/Structural/README.md +++ b/Structural/README.md @@ -14,3 +14,7 @@ entities. * [FluentInterface](FluentInterface) [:notebook:](http://en.wikipedia.org/wiki/Fluent_interface) * [Proxy](Proxy) [:notebook:](http://en.wikipedia.org/wiki/Proxy_pattern) * [Registry](Registry) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) + +## UML Diagram + +![Alt FluentInterface UML Diagram](uml/uml.png) \ No newline at end of file