public function set($name, $value)
    {
        if ($name == 'id') {
            throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
        }
        $this->_states[$name] = $value;
        $this->save();
    }
public function set($name, $value)
    {
        if ($name == 'id') {
            throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::' . $name);
        }
        $this->_states[$name] = $value;
        $this->save();
    }
public function set ( $ name , $ value ) { if ( $ name == 'id' ) { throw new InvalidCallException ( 'Setting read-only property: ' . get_class ( $ this ) . '::' . $ name ) ; } $ this -> _states [ $ name ] = $ value ; $ this -> save ( ) ; }
Set the profile
@param string $name
@param mixed $value
@throws InvalidCallException
Set the profile