Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 3 | public function convertToString(Map $map): string |
|
16 | { |
||
17 | 3 | $stringMap = ''; |
|
18 | |||
19 | /** @var Location $location */ |
||
20 | 3 | foreach ($map->toArray() as $location) { |
|
21 | 2 | $biom = $location->getBiom(); |
|
22 | 2 | $stringMap .= $this->getSymbolByBiom($biom); |
|
23 | } |
||
24 | |||
25 | 3 | return $stringMap; |
|
26 | } |
||
27 | |||
38 |