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