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 | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | final class DateTime extends AbstractRule |
||
| 27 | { |
||
| 28 | use DateTimeHelper; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string|null |
||
| 32 | */ |
||
| 33 | private $format; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Initializes the rule. |
||
| 37 | * |
||
| 38 | * @param string|null $format |
||
| 39 | */ |
||
| 40 | 9 | public function __construct(string $format = null) |
|
| 41 | { |
||
| 42 | 9 | $this->format = $format; |
|
| 43 | 9 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 37 | public function validate($input): bool |
|
| 63 | } |
||
| 64 | } |
||
| 65 |