| 1 | <?php |
||
| 8 | class DeleteShortUrlException extends RuntimeException |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $visitsThreshold; |
||
| 14 | |||
| 15 | 16 | public function __construct(int $visitsThreshold, string $message = '', int $code = 0, Throwable $previous = null) |
|
| 20 | |||
| 21 | 4 | public static function fromVisitsThreshold(int $threshold, string $shortCode): self |
|
| 29 | |||
| 30 | 13 | public function getVisitsThreshold(): int |
|
| 34 | } |
||
| 35 |