textObject = new Text(String::toUTF8($text), $fontStyle, $paragraphStyle); $this->depth = $depth; // Version >= 0.10.0 will pass numbering style name. Older version will use old method if (!is_null($listStyle) && is_string($listStyle)) { $this->style = new ListItemStyle($listStyle); } else { $this->style = $this->setStyle(new ListItemStyle(), $listStyle, true); } } /** * Get ListItem style */ public function getStyle() { return $this->style; } /** * Get ListItem TextRun */ public function getTextObject() { return $this->textObject; } /** * Get ListItem depth */ public function getDepth() { return $this->depth; } }