Flugg\Responder\Console\MakeTransformer::replaceModel PHP Метод

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

Replace the model for the given stub.
protected replaceModel ( string $stub, string $name ) : string
$stub string
$name string
Результат string
    protected function replaceModel(string $stub, string $name) : string
    {
        $model = $this->getModelNamespace($name);
        $class = $this->getClassFromNamespace($model);
        $stub = str_replace('DummyModelNamespace', $model, $stub);
        $stub = str_replace('DummyModelClass', $class, $stub);
        $stub = str_replace('DummyModelVariable', camel_case($class), $stub);
        return $stub;
    }