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 name() |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | public function setName($name) |
||
50 | |||
51 | /** |
||
52 | * @inheritdoc |
||
53 | */ |
||
54 | public function exportConfig() |
||
58 | |||
59 | /** |
||
60 | * Reconfigure data exported from the form it is expected to be in |
||
61 | * inside an alias record to the form it is expected to be in when |
||
62 | * inside a configuration file. |
||
63 | */ |
||
64 | protected function remap($data) |
||
78 | |||
79 | /** |
||
80 | * Fetch the parameter-specific options from the 'alias-parameters' section of the alias. |
||
81 | * @param string $parameterName |
||
82 | * @return array |
||
83 | */ |
||
84 | protected function getParameterSpecificOptions($aliasData, $parameterName) |
||
91 | |||
92 | /** |
||
93 | * Convert the data in this record to the layout that was used |
||
94 | * in the legacy code, for backwards compatiblity. |
||
95 | */ |
||
96 | public function legacyRecord() |
||
109 | |||
110 | /** |
||
111 | * Conversion table from old to new option names. These all implicitly |
||
112 | * go in `options`, although they can come from different locations. |
||
113 | */ |
||
114 | protected function remapOptionTable() |
||
123 | } |
||
124 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.