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->setNewStyle(new ListItemStyle(), $listStyle, true); } parent::__construct($paragraphStyle); } /** * Get ListItem style. * * @return \PhpOffice\PhpWord\Style\ListItem */ public function getStyle() { return $this->style; } /** * Get ListItem depth. * * @return int */ public function getDepth() { return $this->depth; } }