Styles::getLabel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Thepixeldeveloper\Nolimits2PackageLoader;
4
5
/**
6
 * Class Styles
7
 *
8
 * Map of all the coaster types. Key is the type ID and the value
9
 * is the user facing label.
10
 *
11
 * @package Thepixeldeveloper\Nolimits2PackageLoader
12
 */
13
class Styles
14
{
15
    /**
16
     * @var array
17
     */
18
    protected $styles = [
19
        0  => 'Schwarzkopf Thriller (Classic)',
20
        1  => 'Arrow Corkscrew',
21
        2  => 'Vekoma SLC',
22
        3  => 'B&M Sitdown',
23
        4  => 'B&M Inverted',
24
        5  => 'Intamin Hyper',
25
        6  => 'B&M Floorless',
26
        7  => 'B&M standup',
27
        8  => 'B&M Hyper',
28
        9  => 'GCI Millennium Flyer',
29
        10 => 'PTC 4 Seat',
30
        11 => 'PTC 6 Seat',
31
        12 => 'Morgan Trailered',
32
        13 => 'Premier LIM',
33
        14 => 'Vekoma Invertigo',
34
        15 => 'Intamin Inverted Impulse',
35
        16 => 'Arrow Suspended',
36
        18 => 'Vekoma Flying Dutchman',
37
        20 => 'Mauer Soehn Spinner',
38
        21 => 'B&M Diving',
39
        22 => 'Arrow 4D',
40
        23 => 'B&M Flying',
41
        33 => 'Intamin Rocket',
42
        34 => 'Vekoma Minetrain',
43
        35 => 'Vekoma Minetrain w/Locomotive',
44
        36 => 'Gerstlauer Typhoon',
45
        38 => 'Vekoma Motobike',
46
        39 => 'Gerstlauer Bobsled',
47
        41 => 'Gerstlauer Spinner',
48
        47 => 'Gerlstauer Eurofighter',
49
        49 => 'Schwarzkopf Looping Star (Modern)',
50
        50 => 'Mauer Soehn X-Car',
51
        55 => 'Zamperla Spinner',
52
        62 => 'Mack Launch',
53
        63 => 'B&M V-Hyper',
54
        64 => 'B&M V-Hyper w/Scoops',
55
        71 => 'Gravity Group Timberliner',
56
    ];
57
58
    /**
59
     * @return array
60
     */
61
    public function getStyles()
62
    {
63
        return $this->styles;
64
    }
65
66
    /**
67
     * @param  integer $styleId
68
     *
69
     * @return string
70
     */
71
    public function getLabel($styleId)
72
    {
73
        return $this->styles[$styleId];
74
    }
75
}
76