Exemplo n.º 1
0
 public function paragraph($text) : TagInterface
 {
     if ($this->allowChildren === false) {
         throw new Exception\ChildrenNotAllowed(get_class($this));
     }
     $this->add(html::p($text));
     return $this;
 }