public function addBuilder(BuilderInterface $builder)
    {
        $builder->setGenerator($this);
        $builder->setTemplateDirs($this->templateDirectories);
        $builder->setMustOverwriteIfExists($this->mustOverwriteIfExists);
        $builder->setVariables(array_merge($this->variables, $builder->getVariables()));

        $this->builders[] = $builder;

        return $builder;
    }
public function addBuilder(BuilderInterface $builder)
    {
        $builder->setGenerator($this);
        $builder->setTemplateDirs($this->templateDirectories);
        $builder->setMustOverwriteIfExists($this->mustOverwriteIfExists);
        $builder->setVariables(array_merge($this->variables, $builder->getVariables()));

        $this->builders[] = $builder;

        return $builder;
    }
public function addBuilder ( BuilderInterface $ builder ) { $ builder -> setGenerator ( $ this ) ; $ builder -> setTemplateDirs ( $ this -> templateDirectories ) ; $ builder -> setMustOverwriteIfExists ( $ this -> mustOverwriteIfExists ) ; $ builder -> setVariables ( array_merge ( $ this -> variables , $ builder -> getVariables ( ) ) ) ; $ this -> builders [ ] = $ builder ; return $ builder ; }
Add a builder.

@param \TwigGenerator\Builder\BuilderInterface $builder A builder.

@return \TwigGenerator\Builder\BuilderInterface The builder
Add a builder .