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