| @@ -1,0 +1,16 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +declare(strict_types=1); | |
| 4 | + | |
| 5 | +namespace Metricool\Http\Endpoints\Responses; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Response class that serves as a blueprint for creating custom Responses for WordPress REST API endpoints. | |
| 9 | + */ | |
| 10 | +abstract class Response | |
| 11 | +{ | |
| 12 | + /** | |
| 13 | + * Creates the response body | |
| 14 | + */ | |
| 15 | + abstract public function body(): array; | |
| 16 | +} | |