Neos\Flow\Http\Request::withAttribute PHP Метод

withAttribute() публичный Метод

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.
См. также: getAttributes()
public withAttribute ( string $name, mixed $value ) : self
$name string The attribute name.
$value mixed The value of the attribute.
Результат self
    public function withAttribute($name, $value)
    {
        $request = clone $this;
        $request->setAttribute($name, $value);
        return $request;
    }