src/FlexiPeeHP/FlexiBeeRO.php
public function setupProperty($options, $name, $constant = null)
    {
        if (array_key_exists($name, $options)) {
            $this->$name = $options[$name];
        } else {
            if (property_exists($this, $name) && !empty($constant) && defined($constant)) {
                $this->$name = constant($constant);
            }
        }
    }
public function setupProperty($options, $name, $constant = null)
    {
        if (array_key_exists($name, $options)) {
            $this->$name = $options[$name];
        } else {
            if (property_exists($this, $name) && !empty($constant) && defined($constant)) {
                $this->$name = constant($constant);
            }
        }
    }
public function setupProperty ( $ options , $ name , $ constant = null ) { if ( array_key_exists ( $ name , $ options ) ) { $ this -> $ name = $ options [ $ name ] ; } else { if ( property_exists ( $ 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