1 | <?php |
||
19 | class PdoCompositeExpression implements CompositeExpressionInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $logic; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $parts = array(); |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param string $logical |
||
35 | * @param array $parts |
||
36 | */ |
||
37 | public function __construct($logical, array $parts) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function add($part) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getLogic() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function count() |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function process() |
||
86 | |||
87 | /** |
||
88 | * Cast this composite expression to string representation. |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function __toString() |
||
96 | } |
||
97 |