API.php
6 months ago
AbstractListingEndpoint.php
4 weeks ago
ApiException.php
3 months ago
Endpoint.php
3 months ago
EndpointContainer.php
3 years ago
ErrorResponse.php
3 years ago
Exception.php
3 years ago
ListingRequestValidationTrait.php
1 month ago
Request.php
3 years ago
Response.php
1 year ago
index.php
3 years ago
Response.php
18 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\API\REST; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use WP_REST_Response; |
| 9 | |
| 10 | class Response extends WP_REST_Response { |
| 11 | public function __construct( |
| 12 | ?array $data = null, |
| 13 | int $status = 200 |
| 14 | ) { |
| 15 | parent::__construct(['data' => $data], $status); |
| 16 | } |
| 17 | } |
| 18 |