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

Core/REST/Common/Message.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Common;
8
12 class Message
13 {
19 public $headers;
20
26 public $body;
27
33 public $statusCode;
34
42 public function __construct(array $headers = [], $body = '', $statusCode = 200)
43 {
44 $this->headers = $headers;
45 $this->body = $body;
46 $this->statusCode = $statusCode;
47 }
48 }
eZ\Publish\Core\REST\Common\Message
Simple response struct.
Definition: Core/REST/Common/Message.php:13
eZ\Publish\Core\REST\Common\Message\__construct
__construct(array $headers=[], $body='', $statusCode=200)
Construct from headers and body.
Definition: Core/REST/Common/Message.php:42
eZ\Publish\Core\REST\Common\Message\$headers
$headers
Definition: Core/REST/Common/Message.php:19
eZ\Publish\Core\REST\Common\Message\$statusCode
$statusCode
Definition: Core/REST/Common/Message.php:33
eZ\Publish\Core\REST\Common\Message\$body
$body
Definition: Core/REST/Common/Message.php:26
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.