public function setOptions($optionsGiven = []) { parent::setOptions($optionsGiven); $options = array_replace($this->getTextDefaults(), $optionsGiven); $this->font = $options["font"]; $this->alignment = $this->setAlignment($options["alignment"]); $this->bold = $options["bold"]; $this->italic = $options["italic"]; $this->underline = $options["underline"]; }
public function setOptions($optionsGiven) { parent::setOptions($optionsGiven); $options = array_replace($this->getPolygonDefaults(), $optionsGiven); $this->closed = $options["closed"]; $this->fillType = $this->setFillType($options["fillType"]); $this->fillScale = $options["fillScale"]; $this->fillColor = $this->getColor($options["fillColor"]); $this->fillWeight = $this->getWeight($options["fillWeight"]); $this->cutouts = $options["cutouts"]; }