| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 33.33% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class Comment implements Stringable |
||
| 10 | { |
||
| 11 | protected bool $exceedThreshold = false; |
||
| 12 | |||
| 13 | public function hasExceededThreshold(): bool |
||
| 14 | { |
||
| 15 | return $this->exceedThreshold; |
||
| 16 | } |
||
| 17 | |||
| 18 | 9 | public function matchesPattern(string $token): bool |
|
| 19 | { |
||
| 20 | 9 | return (bool) preg_match($this->getPattern(), $token); |
|
|
|
|||
| 21 | } |
||
| 22 | |||
| 23 | public function __toString(): string |
||
| 26 | } |
||
| 27 | } |
||
| 28 |