text = String::toUTF8($text); $this->depth = $depth; if (array_key_exists('Heading_' . $this->depth, Style::getStyles())) { $this->style = 'Heading' . $this->depth; } return $this; } /** * Get Title Text content * * @return string */ public function getText() { return $this->text; } /** * Get depth * * @return integer */ public function getDepth() { return $this->depth; } /** * Get Title style * * @return string */ public function getStyle() { return $this->style; } }