| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait YearMonthTrait |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | private static string $yearmonth_regex = '/^ |
||
| 16 | -? |
||
| 17 | ([1-9][0-9]*|[0-9]{4}) |
||
| 18 | - |
||
| 19 | (0[1-9]|1[012]) |
||
| 20 | ([+-]([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)? |
||
| 21 | $/Dx'; |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $value |
||
| 26 | * @param string $message |
||
| 27 | */ |
||
| 28 | protected static function validYearMonth(string $value, string $message = ''): void |
||
| 38 |