| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class WithoutOverlappingExtension extends LockingExtension implements HasMissingDependencyMessage |
||
| 11 | { |
||
| 12 | public const DEFAULT_TTL = 86400; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param int $ttl Maximum expected lock duration in seconds |
||
| 16 | */ |
||
| 17 | 5 | public function __construct(int $ttl = self::DEFAULT_TTL) |
|
| 18 | { |
||
| 19 | 5 | parent::__construct($ttl); |
|
| 20 | 5 | } |
|
| 21 | |||
| 22 | 3 | public function __toString(): string |
|
| 23 | { |
||
| 24 | 3 | return 'Without overlapping'; |
|
| 25 | } |
||
| 26 | |||
| 27 | public static function getMissingDependencyMessage(): string |
||
| 30 | } |
||
| 31 | } |
||
| 32 |