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