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\Clause;
use Phuria\UnderQuery\Utils\RecursiveArgs;
* @author Beniamin Jonatan Šimko <[email protected]>
trait SelectTrait
{
* @var array $selectClauses
private $selectClauses = [];
* @param mixed $_
* @return $this
public function addSelect($_)
$_
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
RecursiveArgs::each(func_get_args(), function ($arg) {
$this->selectClauses[] = $arg;
});
return $this;
}
* @return array
public function getSelectClauses()
return $this->selectClauses;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.