Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | final class RequestEntityTooLarge extends AbstractApiProblem |
||
10 | { |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $maxContentLength; |
||
15 | |||
16 | public function __construct(int $maxContentLength, string $detail = null, string $instance = null) |
||
17 | { |
||
18 | parent::__construct( |
||
19 | 'https://tools.ietf.org/html/rfc2616#section-10.4.14', |
||
20 | 413, |
||
21 | 2 | 'Request Entity Too Large', |
|
22 | $detail, |
||
23 | 2 | $instance |
|
24 | 2 | ); |
|
25 | 2 | ||
26 | 2 | $this->maxContentLength = $maxContentLength; |
|
27 | } |
||
28 | |||
29 | public function getMaxContentLength(): int |
||
32 | 2 | } |
|
33 | } |
||
34 |