code/model/state/state.php
public function setProperty($name, $property, $value)
    {
        if($this->has($name))
        {
            if($this->hasProperty($name, $property))
            {
                if($property !== 'value') {
                    $this->_data[$name]->$property = $value;
                } else {
                    $this->set($name, $value);
                }
            }
        }

        return $this;
    }
public function setProperty($name, $property, $value)
    {
        if($this->has($name))
        {
            if($this->hasProperty($name, $property))
            {
                if($property !== 'value') {
                    $this->_data[$name]->$property = $value;
                } else {
                    $this->set($name, $value);
                }
            }
        }

        return $this;
    }
public function setProperty ( $ name , $ property , $ value ) { if ( $ this -> has ( $ name ) ) { if ( $ this -> hasProperty ( $ name , $ property ) ) { if ( $ property !== 'value' ) { $ this -> _data [ $ name ] -> $ property = $ value ; } else { $ this -> set ( $ name , $ value ) ; } } } return $ this ; }
Set a state property

@param string $name      The name of the state
@param string $property  The name of the property
@param mixed  $value     The value of the property
@return ModelState
Set a state property