public static function extend($grammarKey, $queryBuilder, $queryTranslator)
    {
        if (isset(static::$grammar[$grammarKey])) 
        {
            throw new Exception('Cannot overwrite Hydrahon grammar.');
        }

        static::$grammar[$grammarKey] = array($queryBuilder, $queryTranslator);
    }
public static function extend($grammarKey, $queryBuilder, $queryTranslator)
    {
        if (isset(static::$grammar[$grammarKey])) 
        {
            throw new Exception('Cannot overwrite Hydrahon grammar.');
        }

        static::$grammar[$grammarKey] = array($queryBuilder, $queryTranslator);
    }
public static function extend ( $ grammarKey , $ queryBuilder , $ queryTranslator ) { if ( isset ( static :: $ grammar [ $ grammarKey ] ) ) { throw new Exception ( 'Cannot overwrite Hydrahon grammar.' ) ; } static :: $ grammar [ $ grammarKey ] = array ( $ queryBuilder , $ queryTranslator ) ; }
Extend the query builder by a new grammar

@throws ClanCats\Hydrahon\Exception

@param string                $grammarKey
@param string                $queryBuilder
@param string                $queryTranslator
@return void
Extend the query builder by a new grammar