| 1 | <?php  | 
            ||
| 16 | class UnionStatement extends Statement  | 
            ||
| 17 | { | 
            ||
| 18 | /**  | 
            ||
| 19 | * @var array  | 
            ||
| 20 | */  | 
            ||
| 21 | protected $queries = [];  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * Adds a query to the statement.  | 
            ||
| 25 | *  | 
            ||
| 26 | * @param string $type  | 
            ||
| 27 | *  | 
            ||
| 28 | * @return self  | 
            ||
| 29 | */  | 
            ||
| 30 | public function addQuery(SelectQuery $query, $type = '')  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Gets the queries for this statement.  | 
            ||
| 39 | *  | 
            ||
| 40 | * @return array  | 
            ||
| 41 | */  | 
            ||
| 42 | public function getQueries()  | 
            ||
| 46 | |||
| 47 | public function build()  | 
            ||
| 71 | }  | 
            ||
| 72 |