| 1 | <?php |
||
| 18 | class NotOverlappedDates extends Constraint |
||
| 19 | { |
||
| 20 | public const INVALID_FROM_DATE = 'FromDate {{ fromDate }} is invalid'; |
||
| 21 | public const INVALID_TO_DATE = 'ToDate {{ toDate }} is invalid'; |
||
| 22 | public const INVALID_ORDER = 'FromDate {{ fromDate }} should be before ToDate {{ toDate }}'; |
||
| 23 | public const INVALID_PERIOD_OVERLAPPED = 'Period {{ fromDate }} - {{ toDate }} overlapped by [{{ periods }}]'; |
||
| 24 | public $message = '{{ message }}'; |
||
| 25 | /** @var string|null */ |
||
| 26 | public $fromDateProperty; |
||
| 27 | /** @var string|null */ |
||
| 28 | public $toDateProperty; |
||
| 29 | /** @var string|null */ |
||
| 30 | public $fromDateMethod; |
||
| 31 | /** @var string|null */ |
||
| 32 | public $toDateMethod; |
||
| 33 | |||
| 34 | 4 | public function getTargets(): string |
|
| 38 | } |
||
| 39 |