1 | <?php |
||
14 | class AliasRecord extends Config implements AliasRecordInterface |
||
15 | { |
||
16 | use AliasRecordTrait; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name; |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function __construct(array $data = null, $name = '', $env = '') |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | public function getConfig(ConfigInterface $config, $key, $default = null) |
||
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | public function name() |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | public function setName($name) |
||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public function exportConfig() |
||
69 | |||
70 | /** |
||
71 | * Reconfigure data exported from the form it is expected to be in |
||
72 | * inside an alias record to the form it is expected to be in when |
||
73 | * inside a configuration file. |
||
74 | */ |
||
75 | protected function remap($data) |
||
89 | |||
90 | /** |
||
91 | * Fetch the parameter-specific options from the 'alias-parameters' section of the alias. |
||
92 | * @param string $parameterName |
||
93 | * @return array |
||
94 | */ |
||
95 | protected function getParameterSpecificOptions($aliasData, $parameterName) |
||
102 | |||
103 | /** |
||
104 | * Convert the data in this record to the layout that was used |
||
105 | * in the legacy code, for backwards compatiblity. |
||
106 | */ |
||
107 | public function legacyRecord() |
||
120 | |||
121 | /** |
||
122 | * Conversion table from old to new option names. These all implicitly |
||
123 | * go in `options`, although they can come from different locations. |
||
124 | */ |
||
125 | protected function remapOptionTable() |
||
134 | } |
||
135 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.