src/Core/Db/Factory/DbFactory.php
private function _createReferencesSqlFunction(array $args)
	{
		$this->_checkSecondArgument($args);
		if(isset($args[2]) && !is_array($args[2]))
		{
			throw new \Exception('sql function references argument have to be an array or null!');
		}
		$argArray = (isset($args[2])) ? $args[2] : array();

		return new SqlFunction($args[1], $argArray);
	}
private function _createReferencesSqlFunction(array $args)
	{
		$this->_checkSecondArgument($args);
		if(isset($args[2]) && !is_array($args[2]))
		{
			throw new \Exception('sql function references argument have to be an array or null!');
		}
		$argArray = (isset($args[2])) ? $args[2] : array();

		return new SqlFunction($args[1], $argArray);
	}
private function _createReferencesSqlFunction ( array $ args ) { $ this -> _checkSecondArgument ( $ args ) ; if ( isset ( $ args [ 2 ] ) && ! is_array ( $ args [ 2 ] ) ) { throw new \ Exception ( 'sql function references argument have to be an array or null!' ) ; } $ argArray = ( isset ( $ args [ 2 ] ) ) ? $ args [ 2 ] : array ( ) ; return new SqlFunction ( $ args [ 1 ] , $ argArray ) ; }
Create an instance of a sql function references object.

@param array $args The arguments that are passed from the clients executed method. Bundled in an array.

@return SqlFunction The validated sql function object, that can easily parsed to a string with casting (string).
@throws \Exception
Create an instance of a sql function references object .