Passed
Push — master ( bd2c5e...fe5f43 )
by Petr
03:48
created

ApiResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace AppBundle\Response;
4
5
use AppBundle\Response\Infrastructure\AbstractApiResponse;
6
7
/**
8
 * @author Vehsamrak
9
 */
10
class ApiResponse extends AbstractApiResponse
11
{
12
    protected $data;
13
    
14 27
    public function __construct($data, int $httpCode)
15
    {
16 27
        $this->data = $data;
17 27
        $this->httpCode = $httpCode;
18 27
    }
19
}
20