Bosnadev\Repositories\Console\Commands\Creators\RepositoryCreator::getModelName PHP Метод

getModelName() защищенный Метод

Get the model name.
protected getModelName ( ) : string
Результат string
    protected function getModelName()
    {
        // Set model.
        $model = $this->getModel();
        // Check if the model isset.
        if (isset($model) && !empty($model)) {
            // Set the model name from the model option.
            $model_name = $model;
        } else {
            // Set the model name by the stripped repository name.
            $model_name = Inflector::singularize($this->stripRepositoryName());
        }
        // Return the model name.
        return $model_name;
    }