| Total Complexity | 4 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | class BlocklistOptions  | 
            ||
| 14 | { | 
            ||
| 15 | /** @var int */  | 
            ||
| 16 | private $autoBlockPhoneLimit;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * BlocklistOptions constructor.  | 
            ||
| 20 | * @param int $autoBlockPhoneLimit  | 
            ||
| 21 | */  | 
            ||
| 22 | 8 | public function __construct(int $autoBlockPhoneLimit)  | 
            |
| 25 | 8 | }  | 
            |
| 26 | |||
| 27 | 3 | public function isAutoBlockEnabled(): bool  | 
            |
| 28 |     { | 
            ||
| 29 | 3 | $limit = $this->getAutoBlockPhoneLimit();  | 
            |
| 30 | |||
| 31 | 3 | return null !== $limit && $limit > 0;  | 
            |
| 32 | }  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @return int  | 
            ||
| 36 | */  | 
            ||
| 37 | 3 | public function getAutoBlockPhoneLimit(): int  | 
            |
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 |