| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class DeleteShortUrlException extends RuntimeException |
||
| 12 | { |
||
| 13 | /** @var int */ |
||
| 14 | private $visitsThreshold; |
||
| 15 | |||
| 16 | 25 | public function __construct(int $visitsThreshold, string $message = '', int $code = 0, ?Throwable $previous = null) |
|
| 20 | } |
||
| 21 | |||
| 22 | 11 | public static function fromVisitsThreshold(int $threshold, string $shortCode): self |
|
| 28 | )); |
||
| 29 | } |
||
| 30 | |||
| 31 | 25 | public function getVisitsThreshold(): int |
|
| 36 |