public function setOptions(RectangleOptions $rectangleOptions)
    {
        $options = array_filter($rectangleOptions->options);
        $this->options = ArrayHelper::merge($this->options, $options);
    }
public function setOptions(RectangleOptions $rectangleOptions)
    {
        $options = array_filter($rectangleOptions->options);
        $this->options = ArrayHelper::merge($this->options, $options);
    }
public function setOptions ( RectangleOptions $ rectangleOptions ) { $ options = array_filter ( $ rectangleOptions -> options ) ; $ this -> options = ArrayHelper :: merge ( $ this -> options , $ options ) ; }
Sets the options based on a RectangleOptions object

@param RectangleOptions $rectangleOptions
Sets the options based on a RectangleOptions object