Passed
Push — master ( f17b13...8bf1e0 )
by Radu
01:33
created

Response::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
namespace WebServCo\Framework\Json;
3
4
class Response extends \WebServCo\Framework\Http\Response
5
{
6
    public function __construct(
7
        \WebServCo\Framework\Interfaces\JsonInterface $jsonObject
8
    ) {
9
        parent::__construct(
10
            $jsonObject->toJson(),
11
            200,
12
            ['Content-Type' => 'application/json']
13
        );
14
    }
15
}
16