public function set($key, $value, $save = true)
    {
        $this->load();
        NestedArrayUtil::setNestedArrayValue($this->state, explode('.', $key), $value);
        if ($save) {
            $this->save();
        }
    }
public function set($key, $value, $save = true)
    {
        $this->load();
        NestedArrayUtil::setNestedArrayValue($this->state, explode('.', $key), $value);
        if ($save) {
            $this->save();
        }
    }
public function set ( $ key , $ value , $ save = true ) { $ this -> load ( ) ; NestedArrayUtil :: setNestedArrayValue ( $ this -> state , explode ( '.' , $ key ) , $ value ) ; if ( $ save ) { $ this -> save ( ) ; } }
Set a state value.

@param string $key
@param mixed  $value
@param bool   $save
Set a state value .