class XmlResponse extends Response (View source)

Traits

ResponseTrait
Macroable

Properties

$headers
$options

Methods

void
__construct(mixed $data = null, int $status = 200, array $headers = [], int $options = [])

Constructor.

$this
setContent(mixed $content)

Set the content on the response.

Details

void __construct(mixed $data = null, int $status = 200, array $headers = [], int $options = [])

Constructor.

Parameters

mixed $data

array|xml string

int $status
array $headers
int $options

Return Value

void

$this setContent(mixed $content)

Set the content on the response.

Parameters

mixed $content

Return Value

$this