1 | <?php |
||
10 | class ShariffConfig |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $domain; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $forceProtocol; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $cacheDir; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | */ |
||
30 | protected $cacheTtl; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $services; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $serviceConfig = []; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $adapter; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | protected $adapterOptions; |
||
51 | |||
52 | /** |
||
53 | * @var array |
||
54 | */ |
||
55 | protected $client; |
||
56 | |||
57 | /** |
||
58 | * @param string $domain |
||
59 | * @param boolean $forceProtocol |
||
60 | * @param array $services |
||
61 | * @param string $cache |
||
62 | * @param string $client |
||
63 | */ |
||
64 | public function __construct($domain, $forceProtocol, $services, $cache, $client) |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getCacheDir() |
||
89 | |||
90 | /** |
||
91 | * @param string $cacheDir |
||
92 | */ |
||
93 | public function setCacheDir($cacheDir) |
||
97 | |||
98 | /** |
||
99 | * @return int |
||
100 | */ |
||
101 | public function getCacheTtl() |
||
105 | |||
106 | /** |
||
107 | * @param int $cacheTtl |
||
108 | */ |
||
109 | public function setCacheTtl($cacheTtl) |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getDomain() |
||
121 | |||
122 | /** |
||
123 | * @param string $domain |
||
124 | */ |
||
125 | public function setDomain($domain) |
||
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | public function getForceProtocol() |
||
137 | |||
138 | /** |
||
139 | * @param string $forceProtocol |
||
140 | */ |
||
141 | public function setForceProtocol($forceProtocol) |
||
145 | |||
146 | /** |
||
147 | * @return array |
||
148 | */ |
||
149 | public function getServices() |
||
153 | |||
154 | /** |
||
155 | * @param array $services |
||
156 | */ |
||
157 | public function setServices($services) |
||
161 | |||
162 | /** |
||
163 | * @return string |
||
164 | */ |
||
165 | public function getAdapter() |
||
169 | |||
170 | /** |
||
171 | * @param string $adapter |
||
172 | */ |
||
173 | public function setAdapter($adapter) |
||
177 | |||
178 | /** |
||
179 | * @return array |
||
180 | */ |
||
181 | public function getAdapterOptions() |
||
185 | |||
186 | /** |
||
187 | * @param array $adapterOptions |
||
188 | */ |
||
189 | public function setAdapterOptions($adapterOptions) |
||
193 | |||
194 | /** |
||
195 | * @return array |
||
196 | */ |
||
197 | public function toArray() |
||
229 | } |
||
230 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.