| 1 | <?php |
||
| 18 | class Minus implements QueryInterface, QueryPartInterface |
||
| 19 | { |
||
| 20 | const MINUS = 'MINUS'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var Select |
||
| 24 | */ |
||
| 25 | private $first; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Select |
||
| 29 | */ |
||
| 30 | private $second; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function partName() |
||
| 39 | |||
| 40 | /*** |
||
| 41 | * @param Select $first |
||
| 42 | * @param Select $second |
||
| 43 | */ |
||
| 44 | public function __construct(Select $first, Select $second) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return \NilPortugues\Sql\QueryBuilder\Manipulation\Select |
||
| 52 | */ |
||
| 53 | public function getFirst() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return \NilPortugues\Sql\QueryBuilder\Manipulation\Select |
||
| 60 | */ |
||
| 61 | public function getSecond() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @throws QueryException |
||
| 68 | * |
||
| 69 | * @return \NilPortugues\Sql\QueryBuilder\Syntax\Table |
||
| 70 | */ |
||
| 71 | public function getTable() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @throws QueryException |
||
| 78 | * |
||
| 79 | * @return \NilPortugues\Sql\QueryBuilder\Syntax\Where |
||
| 80 | */ |
||
| 81 | public function getWhere() |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @throws QueryException |
||
| 88 | * |
||
| 89 | * @return \NilPortugues\Sql\QueryBuilder\Syntax\Where |
||
| 90 | */ |
||
| 91 | public function where() |
||
| 95 | } |
||
| 96 |