public function replace(array $attributes):bool
    {
        $status = false;
        foreach ($this->session as $one => $value) {
            if (null !== $this->get($one)) {
                $this->set($one, $value);
                $status = true;
            }
        }
        if (true === $status) {
            $this->save();
        }

        return ($status);
    }
public function replace(array $attributes):bool
    {
        $status = false;
        foreach ($this->session as $one => $value) {
            if (null !== $this->get($one)) {
                $this->set($one, $value);
                $status = true;
            }
        }
        if (true === $status) {
            $this->save();
        }

        return ($status);
    }
public function replace ( array $ attributes ) : bool { $ status = false ; foreach ( $ this -> session as $ one => $ value ) { if ( null !== $ this -> get ( $ one ) ) { $ this -> set ( $ one , $ value ) ; $ status = true ; } } if ( true === $ status ) { $ this -> save ( ) ; } return ( $ status ) ; }
Replace session items
@param array $attributes Session item with key/value
@return bool false if not session item has not edited or true if it has been edited
@throws Server500
Replace session items