/** * @param $text * @param callable $callback * * @return $this */ public function addText($text, Closure $callback = null) { $text = new Text($text); $text->call($callback); $this->text[] = $text; return $this; }
/** * @return Text */ public function getText() { return $this->text->getText(); }