for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebServCo\Api\JsonApi;
class Response extends \WebServCo\Framework\HttpResponse
{
public function __construct(
Document $document
) {
parent::__construct(
$document->toJson(),
$document->getStatusCode(),
['Content-Type' => Document::CONTENT_TYPE]
);
}