Completed
Push — master ( b98498...ed897d )
by Radu
04:47
created

Response::getOutput()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nc 2
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
namespace WebServCo\Api\JsonApi;
3
4
class Response extends \WebServCo\Framework\HttpResponse
5
{
6
    public function __construct(
7
        Document $document
8
    ) {
9
        parent::__construct(
10
            $document->toJson(),
11
            $document->getStatusCode(),
12
            ['Content-Type' => Document::CONTENT_TYPE]
13
        );
14
    }
15
}
16