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

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

Replace the namespace for the given stub.
protected replaceNamespace ( string $stub ) : string
$stub string
Результат string
    protected function replaceNamespace(string $stub) : string
    {
        if (method_exists($this->laravel, 'getNameSpace')) {
            $namespace = $this->laravel->getNamespace() . 'Transformers';
        } else {
            $namespace = 'App\\Transformers';
        }
        $stub = str_replace('DummyNamespace', $namespace, $stub);
        return $stub;
    }