| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function collect(Map $map, array $extendables = []): array |
||
| 30 | { |
||
| 31 | foreach ($map->getBound()->getExtendables() as $extendable) { |
||
| 32 | if ($extendable instanceof Marker || $extendable instanceof Polyline) { |
||
| 33 | $extendables = $this->collectValue($extendable, $extendables); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return $extendables; |
||
| 38 | } |
||
| 40 |