private function setUserOptions($options)
    {
        if (is_array($options)) {
            foreach ($options as $property => $value) {
                $this->$property = $value;
            }
        }
    }
private function setUserOptions($options)
    {
        if (is_array($options)) {
            foreach ($options as $property => $value) {
                $this->$property = $value;
            }
        }
    }
private function setUserOptions ( $ options ) { if ( is_array ( $ options ) ) { foreach ( $ options as $ property => $ value ) { $ this -> $ property = $ value ; } } }
Set user defined options.

@param array $options
Set user defined options .