Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 1 | public function zone(): object |
|
34 | { |
||
35 | |||
36 | 1 | $zone = new \stdClass(); |
|
37 | |||
38 | 1 | $zone->id = intval($this->_zone['Id']); |
|
39 | 1 | $zone->description = $this->_zone['Description']; |
|
40 | 1 | $zone->shortDescription = $this->_zone['ShortDescription']; |
|
41 | 1 | $zone->rank = $this->_zone['Rank']; |
|
42 | 1 | $zone->zoneMapId = $this->_zone['ZoneMapId']; |
|
43 | 1 | $zone->zoneTime = $this->_zone['ZoneTime']; |
|
44 | 1 | $zone->abbreviation = $this->_zone['Abbreviation']; |
|
45 | 1 | $zone->zoneLegend = $this->_zone['ZoneLegend']; |
|
46 | 1 | $zone->zoneGroup = $this->_zone['ZoneGroup']; |
|
47 | |||
48 | 1 | return $zone; |
|
49 | } |
||
51 |