| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Nord\Lumen\Elasticsearch\Documents\Bulk; |
||
| 78 | public function toArray() |
||
| 79 | { |
||
| 80 | $result = [ |
||
| 81 | 'body' => [], |
||
| 82 | ]; |
||
| 83 | |||
| 84 | foreach ($this->actions as $i => $action) { |
||
| 85 | $result['body'][] = [ |
||
| 86 | $action->getAction() => $action->getMetadata() |
||
| 87 | ]; |
||
| 88 | $result['body'][] = $action->getBody(); |
||
| 89 | } |
||
| 90 | |||
| 91 | return $result; |
||
| 92 | } |
||
| 94 |