| 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 | 538 | public function __construct(string $pattern) |
|
| 17 | 538 | } |
|
| 18 | |||
| 19 | 514 | public function getPattern() : string |
|
| 20 | { |
||
| 21 | 514 | return $this->pattern; |
|
| 22 | } |
||
| 23 | |||
| 24 | 173 | public function getRegex() : string |
|
| 31 | } |
||
| 32 | |||
| 33 | 170 | public function matches(string $word) : bool |
|
| 38 |