| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 1 | public function parseResponse($responseLine, $responseData) |
|
| 54 | { |
||
| 55 | 1 | $schedules = []; |
|
| 56 | 1 | foreach ($responseData['workflow_schedule'] as $scheduleDatas) { |
|
| 57 | 1 | $scheduleDatas = $scheduleDatas['@attributes'] ?? $scheduleDatas; |
|
| 58 | 1 | $this->scheduleId = $scheduleDatas['id']; |
|
| 59 | 1 | $schedule = $this->createScheduleFromArray($scheduleDatas); |
|
| 60 | 1 | $schedules[] = $schedule; |
|
| 61 | } |
||
| 62 | 1 | return new ArrayCollection($schedules); |
|
| 63 | } |
||
| 65 |