DeleteShortUrlsOptions.php 793 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types=1);
  3. namespace Shlinkio\Shlink\Core\Options;
  4. use Laminas\Stdlib\AbstractOptions;
  5. class DeleteShortUrlsOptions extends AbstractOptions
  6. {
  7. private int $visitsThreshold = 15;
  8. private bool $checkVisitsThreshold = true;
  9. public function getVisitsThreshold(): int
  10. {
  11. return $this->visitsThreshold;
  12. }
  13. protected function setVisitsThreshold(int $visitsThreshold): self
  14. {
  15. $this->visitsThreshold = $visitsThreshold;
  16. return $this;
  17. }
  18. public function doCheckVisitsThreshold(): bool
  19. {
  20. return $this->checkVisitsThreshold;
  21. }
  22. protected function setCheckVisitsThreshold(bool $checkVisitsThreshold): self
  23. {
  24. $this->checkVisitsThreshold = $checkVisitsThreshold;
  25. return $this;
  26. }
  27. }