1 | <?php |
||
12 | class Coaster |
||
13 | { |
||
14 | /** |
||
15 | * @var SimpleXMLElement |
||
16 | */ |
||
17 | protected $coasterXML; |
||
18 | |||
19 | /** |
||
20 | * @var Styles |
||
21 | */ |
||
22 | protected $styles; |
||
23 | |||
24 | /** |
||
25 | * Park constructor. |
||
26 | * |
||
27 | * @param SimpleXMLElement $simpleXMLElement |
||
28 | * @param Styles $styles |
||
29 | */ |
||
30 | public function __construct(SimpleXMLElement $simpleXMLElement, Styles $styles) |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getName() |
||
43 | |||
44 | /** |
||
45 | * @return int |
||
46 | */ |
||
47 | public function getStyleId() |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getStyle() |
||
59 | |||
60 | /** |
||
61 | * @return int |
||
62 | */ |
||
63 | public function getNumberOfTrains() |
||
67 | |||
68 | /** |
||
69 | * @return float |
||
70 | */ |
||
71 | public function getMaxHeight() |
||
75 | |||
76 | /** |
||
77 | * @return float |
||
78 | */ |
||
79 | public function getMinHeight() |
||
83 | |||
84 | /** |
||
85 | * @return float |
||
86 | */ |
||
87 | public function getTrackLength() |
||
91 | |||
92 | /** |
||
93 | * @return float |
||
94 | */ |
||
95 | public function getTrackLengthWithoutStorage() |
||
99 | } |
||
100 |