public function setupProperty($options, $name, $constant = null)
    {
        if (isset($options[$name])) {
            $this->$name = $options[$name];
        } else {
            if (is_null($this->$name) && !empty($constant) && defined($constant)) {
                $this->$name = constant($constant);
            }
        }
    }
public function setupProperty($options, $name, $constant = null)
    {
        if (isset($options[$name])) {
            $this->$name = $options[$name];
        } else {
            if (is_null($this->$name) && !empty($constant) && defined($constant)) {
                $this->$name = constant($constant);
            }
        }
    }
public function setupProperty ( $ options , $ name , $ constant = null ) { if ( isset ( $ options [ $ name ] ) ) { $ this -> $ name = $ options [ $ name ] ; } else { if ( is_null ( $ this -> $ name ) && ! empty ( $ constant ) && defined ( $ constant ) ) { $ this -> $ name = constant ( $ constant ) ; } } }
Set up one of properties

@param array  $options  array of given properties
@param string $name     name of property to process
@param string $constant load default property value from constant
Set up one of properties