1 | <?php |
||
30 | trait UnionTrait |
||
31 | { |
||
32 | use AbstractTrait; |
||
33 | |||
34 | /** |
||
35 | * 0 NO, 1 YES, 2 UNION ALL |
||
36 | * @var int |
||
37 | * @access protected |
||
38 | */ |
||
39 | protected $is_union = UnionInterface::UNION_NOT; |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function union()/*# : SelectStatementInterface */ |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | public function unionAll()/*# : SelectStatementInterface */ |
||
58 | |||
59 | /** |
||
60 | * Override `getStatement()` in StatementAbstract |
||
61 | * |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public function getStatement(array $settings = [])/*# : string */ |
||
83 | |||
84 | /** |
||
85 | * Build UNION/UNION ALL |
||
86 | * |
||
87 | * @param string $prefix |
||
88 | * @param array $settings |
||
89 | * @return string |
||
90 | * @access protected |
||
91 | */ |
||
92 | protected function buildUnion( |
||
105 | } |
||
106 |