Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Borough | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
parseData | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 |
1 | <?php |
2 | |
3 | /** |
4 | * @package 115Mandant |
5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
6 | **/ |
7 | |
8 | namespace BO\Zmsdldb\File; |
9 | |
10 | use BO\Zmsdldb\Entity\Borough as Entity; |
11 | use BO\Zmsdldb\Collection\Boroughs as Collection; |
12 | |
13 | /** |
14 | * Common methods shared by access classes |
15 | * |
16 | */ |
17 | class Borough extends Base |
18 | { |
19 | protected function parseData($data) |
20 | { |
21 | $itemList = new Collection(); |
22 | foreach ($data['data']['boroughs'] as $item) { |
23 | $itemList[$item['id']] = new Entity($item); |
24 | } |
25 | return $itemList; |
26 | } |
27 | } |