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