We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | final class Date extends AbstractRule |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $format; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Initializes the rule. |
||
| 37 | * |
||
| 38 | * @param string $format |
||
| 39 | * |
||
| 40 | * @throws ComponentException |
||
| 41 | */ |
||
| 42 | 4 | public function __construct(string $format = 'Y-m-d') |
|
| 49 | 2 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 12 | public function validate($input): bool |
|
| 65 |