/** Доктайп - одна из констант класса Page::DOCTYPE_* */ public function setDoctype($doctype) { if (!static::GetDoctypeHTML($doctype)) { Exception::Doctype($doctype); } $this->doctype = $doctype; return $this; }