1 | <?php |
||
5 | class GenericState |
||
6 | { |
||
7 | private $className; |
||
8 | |||
9 | private $code; |
||
10 | |||
11 | private $fullName; |
||
12 | |||
13 | private $shortName; |
||
14 | |||
15 | private $timeZone; |
||
16 | |||
17 | /** |
||
18 | * GenericState constructor. |
||
19 | * |
||
20 | * @param int $code |
||
21 | * @param string $fullName |
||
22 | * @param string $shortName |
||
23 | * @param string $timeZone |
||
24 | */ |
||
25 | 3 | public function __construct($code, $fullName, $shortName, $timeZone) |
|
33 | |||
34 | 3 | private function normalizeClassName($fullName) |
|
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 1 | public function getClassName() |
|
46 | { |
||
47 | 1 | return $this->className; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | 3 | public function getCode() |
|
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 1 | public function getFullName() |
|
62 | { |
||
63 | 1 | return $this->fullName; |
|
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | 1 | public function getShortName() |
|
70 | { |
||
71 | 1 | return $this->shortName; |
|
72 | } |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 1 | public function getTimeZone() |
|
78 | { |
||
79 | 1 | return $this->timeZone; |
|
80 | } |
||
81 | |||
82 | /** |
||
83 | * @return bool |
||
84 | */ |
||
85 | 3 | public function isState() |
|
89 | } |
||
90 |