Flugg\Responder\Console\MakeTransformer::replaceModel PHP Method

replaceModel() protected method

Replace the model for the given stub.
protected replaceModel ( string $stub, string $name ) : string
$stub string
$name string
return 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;
    }