public function flush() { foreach ($this->lines as $line) { $line->flush(); } $this->lines = array(); parent::flush(); }
public function flush() { $placeholders = array('footer', 'header', 'watermark'); foreach ($placeholders as $placeholder) { if ($this->{$placeholder}) { $this->{$placeholder}->flush(); $this->{$placeholder} = null; } } parent::flush(); }