| Conditions | 6 | 
| Paths | 4 | 
| Total Lines | 22 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 6 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 52 | 5 | private function isSchedulePropertyValid(JobEntity $oJobEntity)  | 
            |
| 53 |     { | 
            ||
| 54 | 5 | if (empty($oJobEntity->schedule) && !empty($oJobEntity->parents))  | 
            |
| 55 | 5 |         { | 
            |
| 56 | 1 | return true;  | 
            |
| 57 | }  | 
            ||
| 58 | |||
| 59 | 5 | if (!empty($oJobEntity->schedule) && empty($oJobEntity->parents))  | 
            |
| 60 | 5 |         { | 
            |
| 61 | try  | 
            ||
| 62 |             { | 
            ||
| 63 | 4 | $_oDataPeriod = $this->oDatePeriodFactory->createDatePeriod($oJobEntity->schedule, $oJobEntity->scheduleTimeZone);  | 
            |
| 64 | 3 | return (false !== $_oDataPeriod);  | 
            |
| 65 | }  | 
            ||
| 66 | 1 | catch (\Exception $oException)  | 
            |
| 67 |             { | 
            ||
| 68 | // invalid: Iso8601 is not valid and/or DatePeriodFactory is able to create a valid DatePeriod  | 
            ||
| 69 | }  | 
            ||
| 70 | 1 | }  | 
            |
| 71 | |||
| 72 | 4 | return false;  | 
            |
| 73 | }  | 
            ||
| 74 | }  |