| Total Complexity | 5 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 9 | final class Pattern | ||
| 10 | { | ||
| 11 | /** @var string */ | ||
| 12 | private $pattern; | ||
| 13 | |||
| 14 | 535 | public function __construct(string $pattern) | |
| 17 | 535 | } | |
| 18 | |||
| 19 | 509 | public function getPattern() : string | |
| 20 |     { | ||
| 21 | 509 | return $this->pattern; | |
| 22 | } | ||
| 23 | |||
| 24 | 177 | public function getRegex() : string | |
| 31 | } | ||
| 32 | |||
| 33 | 177 | public function matches(string $word) : bool | |
| 38 |