public function withAttribute($name, $value)
    {
        $request = clone $this;
        $request->setAttribute($name, $value);
        return $request;
    }
public function withAttribute($name, $value)
    {
        $request = clone $this;
        $request->setAttribute($name, $value);
        return $request;
    }
public function withAttribute ( $ name , $ value ) { $ request = clone $ this ; $ request -> setAttribute ( $ name , $ value ) ; return $ request ; }
PSR-7

Return an instance with the specified derived request attribute.

This method allows setting a single derived request attribute as
described in getAttributes().

This method MUST be implemented in such a way as to retain the
immutability of the message, and MUST return an instance that has the
updated attribute.

@see getAttributes()
@param string $name The attribute name.
@param mixed $value The value of the attribute.
@return self
PSR - 7