1 | <?php |
||
34 | class Union extends StatementAbstract implements UnionStatementInterface |
||
35 | { |
||
36 | use ClauseTrait, OrderByTrait, LimitTrait; |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | protected $configs = [ |
||
42 | 'UNION' => '', |
||
43 | 'ORDERBY' => 'ORDER BY', |
||
44 | 'LIMIT' => 'LIMIT', |
||
45 | ]; |
||
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | public function union(SelectStatementInterface $select) |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | public function unionAll(SelectStatementInterface $select) |
||
62 | |||
63 | /** |
||
64 | * Build unioned SELECT |
||
65 | * |
||
66 | * @param string $prefix |
||
67 | * @param array $settings |
||
68 | * @return string |
||
69 | * @access protected |
||
70 | */ |
||
71 | protected function buildUnion( |
||
87 | |||
88 | /** |
||
89 | * @param string $type |
||
90 | * @param SelectStatementInterface $select |
||
91 | * @return $this |
||
92 | * @access protected |
||
93 | */ |
||
94 | protected function addUnion( |
||
102 | |||
103 | /** |
||
104 | * {@inheritDoc} |
||
105 | */ |
||
106 | protected function getType()/*# : string */ |
||
110 | } |
||
111 |