We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | final class Regex extends AbstractRule |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $regex; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Initializes the rule. |
||
| 35 | * |
||
| 36 | * @param string $regex |
||
| 37 | */ |
||
| 38 | 1 | public function __construct(string $regex) |
|
| 39 | { |
||
| 40 | 1 | $this->regex = $regex; |
|
| 41 | 1 | } |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 7 | public function validate($input): bool |
|
| 53 | } |
||
| 54 | } |
||
| 55 |