1 | <?php |
||
18 | class Schedule extends AbstractPropertyValidator implements PropertyValidatorInterface |
||
19 | { |
||
20 | const DIC_NAME = 'ScheduleValidator'; |
||
21 | const MESSAGE_TEMPLATE = '"%s" is not a valid ISO8601 string and/or DatePeriodFactory is not able to create a valid DatePeriod'; |
||
22 | |||
23 | /** |
||
24 | * @var DatePeriodFactoryInterface |
||
25 | */ |
||
26 | private $datePeriodFactory; |
||
27 | |||
28 | /** |
||
29 | * Epsilon constructor. |
||
30 | * @param DatePeriodFactoryInterface $datePeriodFactory |
||
31 | */ |
||
32 | 5 | public function __construct(DatePeriodFactoryInterface $datePeriodFactory) |
|
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 5 | public function isValid($property, JobEntityInterface $jobEntity) |
|
48 | |||
49 | /** |
||
50 | * @param JobEntityInterface $jobEntity |
||
51 | * @return bool |
||
52 | */ |
||
53 | 5 | private function isSchedulePropertyValid(JobEntityInterface $jobEntity) |
|
74 | } |
||
75 |