/** * */ public function setElement(MString $element) { if ($element->equals(S("p"))) { parent::setElement($element); } else { throw new MException(Sf("Invalid element '%s', must be paragraph 'p'", $element)); } }