| 1 | <?php |
||
| 8 | class ResourceDoResponse extends Response implements ResourceDoResponseInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ResourceDOInterface |
||
| 12 | */ |
||
| 13 | protected $content; |
||
| 14 | |||
| 15 | public function getContent() |
||
| 19 | |||
| 20 | public function setContent(ResourceDOInterface $content) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create an empty response with the given status code and attached resource. |
||
| 27 | * |
||
| 28 | * @param ResourceDOInterface $resource |
||
| 29 | * @param int $status Status code for the response, if any. |
||
| 30 | * @param array $headers Headers for the response, if any. |
||
| 31 | */ |
||
| 32 | public function __construct(ResourceDOInterface $resource, $status = 204, array $headers = []) |
||
| 38 | |||
| 39 | protected function createBody() |
||
| 45 | } |
||
| 46 |