Exemple #1
0
 /**
  * @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;
 }
Exemple #2
0
 /**
  * @return Text
  */
 public function getText()
 {
     return $this->text->getText();
 }