Passed
Pull Request — master (#2)
by Dominik
02:20
created

LengthRequired   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 4 1
A getType() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\ApiHttp\ApiProblem\ClientError;
6
7
use Chubbyphp\ApiHttp\ApiProblem\AbstractApiProblem;
8
9
final class LengthRequired extends AbstractApiProblem
10
{
11
    /**
12
     * @return int
13
     */
14 2
    public function getStatus(): int
15
    {
16 2
        return 411;
17
    }
18
19
    /**
20
     * @return string
21
     */
22 2
    public function getType(): string
23
    {
24 2
        return 'https://tools.ietf.org/html/rfc2616#section-10.4.12';
25
    }
26
}
27