| 1 | <?php |
||
| 8 | class TwoPerformanceEventsPerDay extends Constraint |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | public $maxPerformancesPerDay = 'you_cant_set_more_events_per_day'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | public $performanceMustHaveDate = 'performance_must_have_a_date'; |
||
| 19 | |||
| 20 | 1 | public function validatedBy() |
|
| 21 | { |
||
| 22 | 1 | return 'two_performance_events_per_day'; |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function getTargets() |
|
| 29 | } |
||
| 30 |