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

LengthRequired::getStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\ApiHttp\ApiProblem;
6
7
final class LengthRequired extends AbstractApiProblem
8
{
9
    /**
10
     * @return int
11
     */
12 2
    public function getStatus(): int
13
    {
14 2
        return 411;
15
    }
16
17
    /**
18
     * @return string
19
     */
20 2
    public function getType(): string
21
    {
22 2
        return 'https://tools.ietf.org/html/rfc2616#section-10.4.12';
23
    }
24
}
25