mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 17:22:41 +01:00
Added FluentInterface UML
This commit is contained in:
parent
0a47cdaccd
commit
d2dcb197cd
BIN
Structural/FluentInterface/uml/uml.png
Normal file
BIN
Structural/FluentInterface/uml/uml.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
1
Structural/FluentInterface/uml/uml.svg
Normal file
1
Structural/FluentInterface/uml/uml.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="156pt" style="width:227px;height:156px;" version="1.1" viewBox="0 0 227 156" width="227pt"><defs><filter height="300%" id="f1" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><rect fill="#FEFECE" filter="url(#f1)" height="138.6855" style="stroke: #A80036; stroke-width: 1.5;" width="212" x="6" y="8.5"/><ellipse cx="99.25" cy="24.5" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/><path d="M102.2231,30.1431 Q101.6421,30.4419 101.0029,30.5913 Q100.3638,30.7407 99.6582,30.7407 Q97.1514,30.7407 95.8315,29.0889 Q94.5117,27.437 94.5117,24.3159 Q94.5117,21.1865 95.8315,19.5347 Q97.1514,17.8828 99.6582,17.8828 Q100.3638,17.8828 101.0112,18.0322 Q101.6587,18.1816 102.2231,18.4805 L102.2231,21.2031 Q101.5923,20.6221 100.9988,20.3523 Q100.4053,20.0825 99.7744,20.0825 Q98.4297,20.0825 97.7449,21.1492 Q97.0601,22.2158 97.0601,24.3159 Q97.0601,26.4077 97.7449,27.4744 Q98.4297,28.541 99.7744,28.541 Q100.4053,28.541 100.9988,28.2712 Q101.5923,28.0015 102.2231,27.4204 Z "/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="17" x="119.75" y="29.0352">Sql</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="7" x2="217" y1="40.5" y2="40.5"/><polygon fill="none" points="17,47.4775,21,51.4775,17,55.4775,13,51.4775" style="stroke: #B38D22; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="73" x="26" y="55.1348">$fields : array</text><polygon fill="none" points="17,60.4326,21,64.4326,17,68.4326,13,64.4326" style="stroke: #B38D22; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="70" x="26" y="68.0898">$from : array</text><polygon fill="none" points="17,73.3877,21,77.3877,17,81.3877,13,77.3877" style="stroke: #B38D22; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="76" x="26" y="81.0449">$where : array</text><line style="stroke: #A80036; stroke-width: 1.5;" x1="7" x2="217" y1="87.3652" y2="87.3652"/><ellipse cx="17" cy="99.3428" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="157" x="26" y="102">select(array $fields = array())</text><ellipse cx="17" cy="112.2979" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="186" x="26" y="114.9551">from($table : string, $alias : string)</text><ellipse cx="17" cy="125.2529" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="139" x="26" y="127.9102">where($condition : string)</text><ellipse cx="17" cy="138.208" fill="#84BE84" rx="3" ry="3" style="stroke: #038048; stroke-width: 1.0;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="58" x="26" y="140.8652">getQuery()</text></g></svg>
|
After Width: | Height: | Size: 3.5 KiB |
13
Structural/FluentInterface/uml/uml.txt
Normal file
13
Structural/FluentInterface/uml/uml.txt
Normal file
@ -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
|
@ -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
|
||||
|
||||

|
Loading…
x
Reference in New Issue
Block a user