for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Phuria SQL Builder 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\SQLBuilder\QueryBuilder;
use Phuria\SQLBuilder\Table\AbstractTable;
* @author Beniamin Jonatan Šimko <[email protected]>
class DeleteBuilder extends AbstractBuilder implements
Clause\DeleteClauseInterface,
Clause\WhereClauseInterface,
Component\JoinComponentInterface,
Component\QueryComponentInterface,
Component\TableComponentInterface
{
use Clause\DeleteClauseTrait;
use Clause\WhereClauseTrait;
use Component\JoinComponentTrait;
use Component\ParameterComponentTrait;
use Component\QueryComponentTrait;
use Component\TableComponentTrait;
* @param mixed $table
* @param string $alias
$alias
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* @return AbstractTable
public function from($table, $alias = null)
return $this->addFrom($table, $alias);
}
public function addFrom($table, $alias = null)
return $this->addRootTable($table, $alias);
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.