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