protected function getTableInstance($model) : Table
    {
        $file = $this->getApplication()->getModelPath($model) . DS . 'Table.php';
        if (!file_exists($file)) {
            throw new GeneratorException(
                "Model $model is not exist, run command `bluzman generate:model $model` before"
            );
        }
        include_once $file;
        $class = '\\Application\\' . ucfirst($model) . '\\Table';
        if (!class_exists($class)) {
            throw new GeneratorException("Bluzman can't found `Table` class for model `$model`");
        }
        return $class::getInstance();
    }
protected function getTableInstance($model) : Table
    {
        $file = $this->getApplication()->getModelPath($model) . DS . 'Table.php';
        if (!file_exists($file)) {
            throw new GeneratorException(
                "Model $model is not exist, run command `bluzman generate:model $model` before"
            );
        }
        include_once $file;
        $class = '\\Application\\' . ucfirst($model) . '\\Table';
        if (!class_exists($class)) {
            throw new GeneratorException("Bluzman can't found `Table` class for model `$model`");
        }
        return $class::getInstance();
    }
protected function getTableInstance ( $ model ) : Table { $ file = $ this -> getApplication ( ) -> getModelPath ( $ model ) . DS . 'Table.php' ; if ( ! file_exists ( $ file ) ) { throw new GeneratorException ( "Model $model is not exist, run command `bluzman generate:model $model` before" ) ; } include_once $ file ; $ class = '\\Application\\' . ucfirst ( $ model ) . '\\Table' ; if ( ! class_exists ( $ class ) ) { throw new GeneratorException ( "Bluzman can't found `Table` class for model `$model`" ) ; } return $ class :: getInstance ( ) ; }
Get Table instance

@param  string $model

@return Table
@throws \Bluzman\Generator\GeneratorException
Get Table instance