setStyleByArray($style); } /** * Get unit * * @return string */ public function getUnit() { return $this->unit; } /** * Get weight * * @return int|float */ public function getWeight() { return $this->weight; } /** * Set weight * * @param int|float $value * @return self */ public function setWeight($value = null) { $this->weight = $this->setNumericVal($value, null); return $this; } /** * Get color * * @return string */ public function getColor() { return $this->color; } /** * Set color * * @param string $value * @return self */ public function setColor($value = null) { $this->color = $value; return $this; } /** * Get dash type * * @return string */ public function getDash() { return $this->dash; } /** * Set dash type * * @param string $value * @return self */ public function setDash($value = null) { $this->dash = $value; return $this; } /** * Get line style * * @return string */ public function getLine() { return $this->line; } /** * Set line style * * @param string $value * @return self */ public function setLine($value = null) { $enum = array(self::LINE_SINGLE, self::LINE_THIN_THIN, self::LINE_THIN_THICK, self::LINE_THICK_THIN, self::LINE_THICK_BETWEEN_THIN, ); $this->line = $this->setEnumVal($value, $enum, null); return $this; } /** * Get endCap style * * @return string */ public function getEndCap() { return $this->endCap; } /** * Set endCap style * * @param string $value * @return self */ public function setEndCap($value = null) { $enum = array(self::ENDCAP_FLAT, self::ENDCAP_SQUARE, self::ENDCAP_ROUND); $this->endCap = $this->setEnumVal($value, $enum, null); return $this; } /** * Get startArrow * * @return string */ public function getStartArrow() { return $this->startArrow; } /** * Set pattern * * @param string $value * @return self */ public function setStartArrow($value = null) { $enum = array(self::ARROW_NONE, self::ARROW_BLOCK, self::ARROW_CLASSIC, self::ARROW_OVAL, self::ARROW_DIAMOND, self::ARROW_OPEN, ); $this->startArrow = $this->setEnumVal($value, $enum, null); return $this; } /** * Get endArrow * * @return string */ public function getEndArrow() { return $this->endArrow; } /** * Set pattern * * @param string $value * @return self */ public function setEndArrow($value = null) { $enum = array(self::ARROW_NONE, self::ARROW_BLOCK, self::ARROW_CLASSIC, self::ARROW_OVAL, self::ARROW_DIAMOND, self::ARROW_OPEN, ); $this->endArrow = $this->setEnumVal($value, $enum, null); return $this; } }