AbstractApiResponse::getHttpCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 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