Completed
Push — master ( 5b9784...ff8441 )
by Alejandro
12s
created

DeleteShortUrlsOptions   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 27
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getVisitsThreshold() 0 4 1
A setVisitsThreshold() 0 5 1
A doCheckVisitsThreshold() 0 4 1
A setCheckVisitsThreshold() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\Core\Options;
5
6
use Zend\Stdlib\AbstractOptions;
7
8
class DeleteShortUrlsOptions extends AbstractOptions
9
{
10
    private $visitsThreshold = 15;
11
    private $checkVisitsThreshold = true;
12
13 2
    public function getVisitsThreshold(): int
14
    {
15 2
        return $this->visitsThreshold;
16
    }
17
18 4
    protected function setVisitsThreshold(int $visitsThreshold): self
19
    {
20 4
        $this->visitsThreshold = $visitsThreshold;
21 4
        return $this;
22
    }
23
24 3
    public function doCheckVisitsThreshold(): bool
25
    {
26 3
        return $this->checkVisitsThreshold;
27
    }
28
29 4
    protected function setCheckVisitsThreshold(bool $checkVisitsThreshold): self
30
    {
31 4
        $this->checkVisitsThreshold = $checkVisitsThreshold;
32 4
        return $this;
33
    }
34
}
35