setType($type); $this->style = $this->setNewStyle(new ShapeStyle(), $style); } /** * Get type * * @return string */ public function getType() { return $this->type; } /** * Set pattern * * @param string $value * @return self */ public function setType($value = null) { $enum = array('arc', 'curve', 'line', 'polyline', 'rect', 'oval'); $this->type = $this->setEnumVal($value, $enum, null); return $this; } /** * Get shape style * * @return \PhpOffice\PhpWord\Style\Shape */ public function getStyle() { return $this->style; } }