1 | <?php |
||
14 | class AliasRecord extends Config implements AliasRecordInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $name; |
||
20 | |||
21 | /** |
||
22 | * @inheritdoc |
||
23 | */ |
||
24 | public function __construct(array $data = null, $name = '', $env = '') |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function getConfig(ConfigInterface $config, $key, $default = null) |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function name() |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function setName($name) |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function hasRoot() |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | * |
||
71 | * @throws \Exception when the alias does not specify a root. |
||
72 | */ |
||
73 | public function root() |
||
84 | |||
85 | /** |
||
86 | * @inheritdoc |
||
87 | */ |
||
88 | public function uri() |
||
92 | |||
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | public function setUri($uri) |
||
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | */ |
||
104 | public function remoteHostWithUser() |
||
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | public function remoteUser() |
||
120 | |||
121 | /** |
||
122 | * @inheritdoc |
||
123 | */ |
||
124 | public function hasRemoteUser() |
||
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | */ |
||
132 | public function remoteHost() |
||
136 | |||
137 | /** |
||
138 | * @inheritdoc |
||
139 | */ |
||
140 | public function isRemote() |
||
144 | |||
145 | /** |
||
146 | * @inheritdoc |
||
147 | */ |
||
148 | public function isLocal() |
||
152 | |||
153 | /** |
||
154 | * @inheritdoc |
||
155 | */ |
||
156 | public function isNone() |
||
160 | |||
161 | /** |
||
162 | * @inheritdoc |
||
163 | */ |
||
164 | public function localRoot() |
||
172 | |||
173 | /** |
||
174 | * os returns the OS that this alias record points to. For local alias |
||
175 | * records, PHP_OS will be returned. For remote alias records, the |
||
176 | * value from the `os` element will be returned. If there is no `os` |
||
177 | * element, then the default assumption is that the remote system is Linux. |
||
178 | * |
||
179 | * @return string |
||
180 | * Linux |
||
181 | * WIN* (e.g. WINNT) |
||
182 | * CYGWIN |
||
183 | * MINGW* (e.g. MINGW32) |
||
184 | */ |
||
185 | public function os() |
||
192 | |||
193 | /** |
||
194 | * @inheritdoc |
||
195 | */ |
||
196 | public function exportConfig() |
||
200 | |||
201 | /** |
||
202 | * Reconfigure data exported from the form it is expected to be in |
||
203 | * inside an alias record to the form it is expected to be in when |
||
204 | * inside a configuration file. |
||
205 | */ |
||
206 | protected function remap($data) |
||
220 | |||
221 | /** |
||
222 | * Fetch the parameter-specific options from the 'alias-parameters' section of the alias. |
||
223 | * @param string $parameterName |
||
224 | * @return array |
||
225 | */ |
||
226 | protected function getParameterSpecificOptions($aliasData, $parameterName) |
||
233 | |||
234 | /** |
||
235 | * Convert the data in this record to the layout that was used |
||
236 | * in the legacy code, for backwards compatiblity. |
||
237 | */ |
||
238 | public function legacyRecord() |
||
251 | |||
252 | /** |
||
253 | * Conversion table from old to new option names. These all implicitly |
||
254 | * go in `options`, although they can come from different locations. |
||
255 | */ |
||
256 | protected function remapOptionTable() |
||
265 | } |
||
266 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.