LeanQuery/DomainQuery.php
/**
	 * @param string $aliases
	 * @throws InvalidArgumentException
	 * @return self
	 */
@param string $aliases
@throws InvalidArgumentException
@return self
@param string $aliases @throws InvalidArgumentException @return self
public function select($aliases)
	{
		$this->cleanCache();
		if (!preg_match('#^\s*(' . self::PATTERN_IDENTIFIER . '\s*,\s*)*(' . self::PATTERN_IDENTIFIER . ')\s*$#', $aliases)) {
			throw new InvalidArgumentException;
		}
		$this->clauses->select += array_fill_keys(preg_split('#\s*,\s*#', trim($aliases)), true);
		return $this;
	}
public function select ( $ aliases ) { $ this -> cleanCache ( ) ; if ( ! preg_match ( '#^\s*(' . self :: PATTERN_IDENTIFIER . '\s*,\s*)*(' . self :: PATTERN_IDENTIFIER . ')\s*$#' , $ aliases ) ) { throw new InvalidArgumentException ; } $ this -> clauses -> select += array_fill_keys ( preg_split ( '#\s*,\s*#' , trim ( $ aliases ) ) , true ) ; return $ this ; }
@param string $aliases
 @throws InvalidArgumentException
 @return self
@param string $aliases @throws InvalidArgumentException @return self