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