Hoa central
XylYield.php
Go to the documentation of this file.
1 <?php
2 
38 
39 use Hoa\Stream;
40 use Hoa\Xml;
41 use Hoa\Xyl;
42 
51 class XylYield
52  extends Xyl\Element\Concrete
54 {
60  protected static $_attributes = [
61  'separator' => self::ATTRIBUTE_TYPE_NORMAL
62  ];
63 
70  public function paint(Stream\IStream\Out $out)
71  {
72  $this->computeValue($out);
73 
74  if (true === $this->abstract->attributeExists('separator') &&
75  false === $this->isLastIteration()) {
76  $out->writeAll($this->abstract->readAttribute('separator'));
77  }
78 
79  return;
80  }
81 }
paint(Stream\IStream\Out $out)
Definition: XylYield.php:70
computeValue(Stream\IStream\Out $out=null)
Definition: Concrete.php:410