private function addTemplate(TemplateReferenceInterface $reference)
    {
        if ($reference->get('engine') !== 'twig') {
            return $this;
        }

        if (false !== ($path = $this->resolvePath($reference->getPath()))) {
            $this->templates[] = $path;
            return $this->addPath($path);
        }
        return $this;
    }
private function addTemplate(TemplateReferenceInterface $reference)
    {
        if ($reference->get('engine') !== 'twig') {
            return $this;
        }

        if (false !== ($path = $this->resolvePath($reference->getPath()))) {
            $this->templates[] = $path;
            return $this->addPath($path);
        }
        return $this;
    }
private function addTemplate ( TemplateReferenceInterface $ reference ) { if ( $ reference -> get ( 'engine' ) !== 'twig' ) { return $ this ; } if ( false !== ( $ path = $ this -> resolvePath ( $ reference -> getPath ( ) ) ) ) { $ this -> templates [ ] = $ path ; return $ this -> addPath ( $ path ) ; } return $ this ; }
Adds twig templates to the tracker.

@param TemplateReferenceInterface $reference the reference to the twig template to be added.
@return Tracker this instance
Adds twig templates to the tracker .