| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function withTask(array $task) |
||
| 57 | { |
||
| 58 | $this->data['Task'] = $task; |
||
| 59 | foreach ($task as $depth1 => $depth1Value) { |
||
| 60 | $this->options['form_params']['Task.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId']; |
||
| 61 | $this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL']; |
||
| 62 | $this->options['form_params']['Task.' . ($depth1 + 1) . '.MaxFrames'] = $depth1Value['MaxFrames']; |
||
| 63 | $this->options['form_params']['Task.' . ($depth1 + 1) . '.Interval'] = $depth1Value['Interval']; |
||
| 64 | $this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageTimeMillisecond'] = $depth1Value['ImageTimeMillisecond']; |
||
| 65 | } |
||
| 66 | |||
| 67 | return $this; |
||
| 68 | } |
||
| 70 |