AbstractApiResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHttpCode() 0 4 1
1
<?php
2
3
namespace AppBundle\Response\Infrastructure;
4
5
use JMS\Serializer\Annotation\Exclude;
6
7
/**
8
 * @author Vehsamrak
9
 */
10
abstract class AbstractApiResponse implements HttpCodeInterface
11
{
12
    /**
13
     * @var int
14
     * @Exclude
15
     */
16
    protected $httpCode;
17
18
19
    /**
20
     * @return int
21
     */
22 44
    public function getHttpCode(): int
23
    {
24 44
        return $this->httpCode;
25
    }
26
}
27