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

Response   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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