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\Component;
use Phuria\SQLBuilder\Table\AbstractTable;
* @author Beniamin Jonatan Šimko <[email protected]>
trait FromComponentTrait
{
* @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
abstract public function addRootTable($table, $alias = null);
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.