src/ServerRequest.php
public function withAttributes(array $attributes): self
    {
        $result = clone $this;
        $result->attributes = new ParameterCollection($attributes);

        return $result;
    }
public function withAttributes(array $attributes): self
    {
        $result = clone $this;
        $result->attributes = new ParameterCollection($attributes);

        return $result;
    }
public function withAttributes ( array $ attributes ) : self { $ result = clone $ this ; $ result -> attributes = new ParameterCollection ( $ attributes ) ; return $ result ; }
Returns a new instance with the specified attributes.

@param mixed $attributes attributes of the new instance

@return self
Returns a new instance with the specified attributes .