PHP Class eZ\Publish\Core\REST\Common\Message

Show file Open project: ezsystems/ezpublish-kernel

Public Properties

Property Type Description
$body string Response body.
$headers array Response headers.
$statusCode integer HTTP status code.

Public Methods

Method Description
__construct ( array $headers = [], string $body = '', integer $statusCode = 200 ) Construct from headers and body.

Method Details

__construct() public method

Construct from headers and body.
public __construct ( array $headers = [], string $body = '', integer $statusCode = 200 )
$headers array
$body string
$statusCode integer

Property Details

$body public property

Response body.
public string $body
return string

$headers public property

Response headers.
public array $headers
return array

$statusCode public property

HTTP status code.
public int $statusCode
return integer