| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Date implements ValidateRuleInterface |
||
| 12 | { |
||
| 13 | use DateTypeTrait; |
||
| 14 | |||
| 15 | protected $delimiterPattern = '[^[:punct:]]'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns a bool indicating if the value can be safely stored in a MySql Date column. |
||
| 19 | * |
||
| 20 | * @param object $subject |
||
| 21 | * @param string $field |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | 36 | public function __invoke($subject, string $field): bool |
|
| 33 |