protected function parseArguments(array $args)
    {
        if (count($args) === 1 && is_array($args[0])) {
            $args = $args[0];
        }

        if (count($args) === 0) {
            throw new QueryException('No arguments given');
        }

        return $args;
    }
protected function parseArguments(array $args)
    {
        if (count($args) === 1 && is_array($args[0])) {
            $args = $args[0];
        }

        if (count($args) === 0) {
            throw new QueryException('No arguments given');
        }

        return $args;
    }
protected function parseArguments ( array $ args ) { if ( count ( $ args ) === 1 && is_array ( $ args [ 0 ] ) ) { $ args = $ args [ 0 ] ; } if ( count ( $ args ) === 0 ) { throw new QueryException ( 'No arguments given' ) ; } return $ args ; }
Parse the arguments and validate for existance of values.

@param array $args

@return array
Parse the arguments and validate for existance of values .