Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | Public Attributes | List of all members
eZ\Publish\Core\REST\Common\Message Class Reference

Simple response struct. More...

## Public Member Functions
| __construct (array $headers=[], $body='', $statusCode=200)
| Construct from headers and body. More...

## Public Attributes
| $headers
| $body
| $statusCode

## Detailed Description

Simple response struct.

Definition at line 12 of file Core/REST/Common/Message.php.

## Constructor & Destructor Documentation

## ◆ __construct()

eZ\Publish\Core\REST\Common\Message::__construct | ( | array | $headers = `[]`,
|  |  | $body = `''`,
|  |  | $statusCode = `200`
| ) |  |

Construct from headers and body.

Parameters

  array | $headers |
  string | $body |
  int | $statusCode |

Definition at line 42 of file Core/REST/Common/Message.php.

References eZ\Publish\Core\REST\Common\Message\$body, eZ\Publish\Core\REST\Common\Message\$headers, and eZ\Publish\Core\REST\Common\Message\$statusCode.

## Member Data Documentation

## ◆ $body

eZ\Publish\Core\REST\Common\Message::$body

Definition at line 26 of file Core/REST/Common/Message.php.

Referenced by eZ\Publish\Core\REST\Common\Message\__construct().

## ◆ $headers

eZ\Publish\Core\REST\Common\Message::$headers

Definition at line 19 of file Core/REST/Common/Message.php.

Referenced by eZ\Publish\Core\REST\Common\Message\__construct().

## ◆ $statusCode

eZ\Publish\Core\REST\Common\Message::$statusCode

Definition at line 33 of file Core/REST/Common/Message.php.

Referenced by eZ\Publish\Core\REST\Common\Message\__construct().

The documentation for this class was generated from the following file:

- Core/REST/Common/Message.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.