| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class DeleteShortUrlsOptions extends AbstractOptions |
||
| 12 | { |
||
| 13 | private int $visitsThreshold = DEFAULT_DELETE_SHORT_URL_THRESHOLD; |
||
| 14 | private bool $checkVisitsThreshold = true; |
||
| 15 | |||
| 16 | 3 | public function getVisitsThreshold(): int |
|
| 19 | } |
||
| 20 | |||
| 21 | 5 | protected function setVisitsThreshold(int $visitsThreshold): self |
|
| 22 | { |
||
| 23 | 5 | $this->visitsThreshold = $visitsThreshold; |
|
| 24 | 5 | return $this; |
|
| 25 | } |
||
| 26 | |||
| 27 | 4 | public function doCheckVisitsThreshold(): bool |
|
| 28 | { |
||
| 29 | 4 | return $this->checkVisitsThreshold; |
|
| 30 | } |
||
| 31 | |||
| 32 | 5 | protected function setCheckVisitsThreshold(bool $checkVisitsThreshold): self |
|
| 36 | } |
||
| 37 | } |
||
| 38 |