1 | <?php |
||
31 | trait PreviousTrait |
||
32 | { |
||
33 | /** |
||
34 | * Previous statement used in UNION/UNION ALL |
||
35 | * |
||
36 | * @var StatementInterface |
||
37 | * @access protected |
||
38 | */ |
||
39 | protected $previous; |
||
40 | |||
41 | /** |
||
42 | * Set previous statement |
||
43 | * |
||
44 | * @param StatementInterface $previous |
||
45 | * @return $this |
||
46 | * @access public |
||
47 | */ |
||
48 | public function setPrevious(StatementInterface $previous = null) |
||
53 | |||
54 | /** |
||
55 | * Has previous statement |
||
56 | * |
||
57 | * @return bool |
||
58 | * @access public |
||
59 | */ |
||
60 | public function hasPrevious()/*# : bool */ |
||
64 | |||
65 | /** |
||
66 | * Get previous statement |
||
67 | * |
||
68 | * @return StatementInterface |
||
69 | * @access public |
||
70 | */ |
||
71 | public function getPrevious()/*# : StatementInterface */ |
||
75 | } |
||
76 |