Baum\Generators\Generator::getStub PHP Method

getStub() protected method

Get the given stub by name.
protected getStub ( $name ) : void
return void
    protected function getStub($name)
    {
        if (stripos($name, '.php.stub') === false) {
            $name = $name . '.php.stub';
        }
        return $this->files->get($this->getStubPath() . '/' . $name);
    }