for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of UnderQuery package.
*
* Copyright (c) 2016 Beniamin Jonatan Šimko
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phuria\UnderQuery\QueryBuilder;
* @author Beniamin Jonatan Šimko <[email protected]>
class DeleteBuilder extends AbstractBuilder implements
Clause\JoinInterface,
Clause\LimitInterface,
Clause\OrderByInterface,
Clause\WhereInterface
{
use Clause\JoinTrait;
use Clause\LimitTrait;
use Clause\OrderByTrait;
use Clause\WhereTrait;
use Component\FromComponentTrait;
* @var array $deleteClauses
private $deleteClauses = [];
* @return $this
public function addDelete()
foreach (func_get_args() as $clause) {
$this->doAddDelete($clause);
}
return $this;
* @param mixed $clause
private function doAddDelete($clause)
$this->deleteClauses[] = $clause;
* @return array
public function getDeleteClauses()
return $this->deleteClauses;