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