class ModifiedResourceResponse extends Response implements ResourceResponseInterface (View source)

A response that does not contain cacheability metadata.

Used when resources are modified by a request: responses to unsafe requests (POST/PATCH/DELETE) can never be cached.

Traits

Properties

protected mixed $responseData

Response data that should be serialized.

from  ResourceResponseTrait

Methods

mixed
getResponseData()

Returns response data that should be serialized.

__construct(mixed $data = NULL, int $status = 200, array $headers = [])

Constructor for ModifiedResourceResponse objects.

Details

mixed getResponseData()

Returns response data that should be serialized.

Return Value

mixed

Response data that should be serialized.

__construct(mixed $data = NULL, int $status = 200, array $headers = [])

Constructor for ModifiedResourceResponse objects.

Parameters

mixed $data

Response data that should be serialized.

int $status

The response status code.

array $headers

An array of response headers.