public function set(string $name, $value, bool $current = false): void
    {
        if ($current) {
            $this->curr->offsetSet($name, $value);
        }
        $this->next->offsetSet($name, $value);
    }
public function set(string $name, $value, bool $current = false): void
    {
        if ($current) {
            $this->curr->offsetSet($name, $value);
        }
        $this->next->offsetSet($name, $value);
    }
public function set ( string $ name , $ value , bool $ current = false ) : void { if ( $ current ) { $ this -> curr -> offsetSet ( $ name , $ value ) ; } $ this -> next -> offsetSet ( $ name , $ value ) ; }
Sets a flash value for the _next_ request, optionally also in the _current_ request.

@param string $name The name
@param mixed $value The value
@param bool $current If true, also sets flash value for the _current_ request.
Sets a flash value for the _next_ request optionally also in the _current_ request .