Пример #1
0
 public function asArgument()
 {
     if ($this->getReturn()) {
         $return = $this->createArgument(array('line' => array('return' => $this->getReturn())));
         $this->aContent[] = $return;
     }
     return parent::asArgument();
 }
Пример #2
0
 public function asString()
 {
     $doc = parent::asArgument()->asDOM();
     return $this->getTemplate(static::DEFAULT_TEMPLATE)->parseDocument($doc, false);
 }