for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Nil Portugués Calderó <[email protected]>
* Date: 12/24/14
* Time: 12:30 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Sql\QueryBuilder\Manipulation;
use NilPortugues\Sql\QueryBuilder\Syntax\QueryPartInterface;
* Class AbstractSetQuery.
abstract class AbstractSetQuery implements QueryInterface, QueryPartInterface
{
* @var array
protected $union = [];
* @param Select $select
* @return $this
public function add(Select $select)
$this->union[] = $select;
return $this;
}
* @return array
public function getUnions()
return $this->union;
* @throws QueryException
* @return \NilPortugues\Sql\QueryBuilder\Syntax\Table
public function getTable()
throw new QueryException(
\sprintf('%s does not support tables', $this->partName())
);
* @return \NilPortugues\Sql\QueryBuilder\Syntax\Where
public function getWhere()
\sprintf('%s does not support WHERE.', $this->partName())
public function where()
\sprintf('%s does not support the WHERE statement.', $this->partName())