1 | <?php |
||
7 | class AppOptions extends AbstractOptions |
||
8 | { |
||
9 | use StringUtilsTrait; |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name = ''; |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $version = '1.0'; |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $secretKey = ''; |
||
23 | |||
24 | /** |
||
25 | * AppOptions constructor. |
||
26 | * @param array|null|\Traversable $options |
||
27 | */ |
||
28 | 15 | public function __construct($options = null) |
|
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | 2 | public function getName() |
|
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @return $this |
||
44 | */ |
||
45 | 6 | protected function setName($name) |
|
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 2 | public function getVersion() |
|
58 | |||
59 | /** |
||
60 | * @param string $version |
||
61 | * @return $this |
||
62 | */ |
||
63 | 6 | protected function setVersion($version) |
|
68 | |||
69 | /** |
||
70 | * @return mixed |
||
71 | */ |
||
72 | 6 | public function getSecretKey() |
|
76 | |||
77 | /** |
||
78 | * @param mixed $secretKey |
||
79 | * @return $this |
||
80 | */ |
||
81 | 6 | protected function setSecretKey($secretKey) |
|
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | 7 | public function __toString() |
|
94 | } |
||
95 |