1 | <?php |
||
35 | class Union extends StatementAbstract implements UnionStatementInterface |
||
36 | { |
||
37 | use ClauseTrait, OrderByTrait, LimitTrait; |
||
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | protected $configs = [ |
||
43 | 'UNION' => '', |
||
44 | 'ORDERBY' => 'ORDER BY', |
||
45 | 'LIMIT' => 'LIMIT', |
||
46 | ]; |
||
47 | |||
48 | /** |
||
49 | * @param BuilderInterface $builder |
||
50 | * @access public |
||
51 | */ |
||
52 | public function __construct(BuilderInterface $builder) |
||
56 | |||
57 | /** |
||
58 | * {@inheritDoc} |
||
59 | */ |
||
60 | public function union(SelectStatementInterface $select) |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | */ |
||
68 | public function unionAll(SelectStatementInterface $select) |
||
72 | |||
73 | /** |
||
74 | * Build unioned SELECT |
||
75 | * |
||
76 | * @param string $prefix |
||
77 | * @param array $settings |
||
78 | * @return string |
||
79 | * @access protected |
||
80 | */ |
||
81 | protected function buildUnion( |
||
97 | |||
98 | /** |
||
99 | * @param string $type |
||
100 | * @param SelectStatementInterface $select |
||
101 | * @return $this |
||
102 | * @access protected |
||
103 | */ |
||
104 | protected function addUnion( |
||
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | */ |
||
116 | protected function getType()/*# : string */ |
||
120 | } |
||
121 |