Exemple #1
0
 public function compile(Compiler $compiler)
 {
     if ($compiler->getEnvironment()->getOption('debug')) {
         $compiler->indented('//Line %d: %s tag', $this->getData('line'), $this->tag->getTag());
     }
     $this->tag->compile($compiler, $this);
 }
Exemple #2
0
 /**
  * @param Tag $tag
  */
 public function addTag(Tag $tag)
 {
     $this->tags[$tag->getTag()] = $tag;
 }