protected function getParser()
    {
        $driver = strtolower(DB::getDriverName());

        if (!in_array($driver, $this->drivers)) {
            throw new Exception('The database driver user is not supported!');
        }

        $class = sprintf('CrestApps\CodeGenerator\DatabaseParsers\%sParser', ucfirst($driver));

        return new $class($this->getTableName(), $this->getDatabaseName(), $this->getLanguages());
    }
protected function getParser()
    {
        $driver = strtolower(DB::getDriverName());

        if (!in_array($driver, $this->drivers)) {
            throw new Exception('The database driver user is not supported!');
        }

        $class = sprintf('CrestApps\CodeGenerator\DatabaseParsers\%sParser', ucfirst($driver));

        return new $class($this->getTableName(), $this->getDatabaseName(), $this->getLanguages());
    }
protected function getParser ( ) { $ driver = strtolower ( DB :: getDriverName ( ) ) ; if ( ! in_array ( $ driver , $ this -> drivers ) ) { throw new Exception ( 'The database driver user is not supported!' ) ; } $ class = sprintf ( 'CrestApps\CodeGenerator\DatabaseParsers\%sParser' , ucfirst ( $ driver ) ) ; return new $ class ( $ this -> getTableName ( ) , $ this -> getDatabaseName ( ) , $ this -> getLanguages ( ) ) ; }
Gets the fields' collection after from using the connection's driver.

@return array
Gets the fields collection after from using the connection s driver .