1 | <?php |
||
19 | class ServiceContainer extends Container |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $id; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $providers = []; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $defaultConfig = []; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $userConfig = []; |
||
40 | |||
41 | /** |
||
42 | * Constructor. |
||
43 | * |
||
44 | * @param array $config |
||
45 | * @param array $prepends |
||
46 | * @param string|null $id |
||
47 | */ |
||
48 | public function __construct(array $config = [], array $prepends = [], string $id = null) |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getId() |
||
66 | |||
67 | /** |
||
68 | * 当面付 |
||
69 | * @return array |
||
70 | */ |
||
71 | public function getF2fpay() : array |
||
75 | |||
76 | /** |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getConfig() |
||
91 | |||
92 | /** |
||
93 | * Return all providers. |
||
94 | * |
||
95 | * @return array |
||
96 | */ |
||
97 | public function getProviders() |
||
106 | |||
107 | /** |
||
108 | * @param string $id |
||
109 | * @param mixed $value |
||
110 | */ |
||
111 | public function rebind($id, $value) |
||
116 | |||
117 | /** |
||
118 | * Magic get access. |
||
119 | * |
||
120 | * @param string $id |
||
121 | * |
||
122 | * @return mixed |
||
123 | */ |
||
124 | public function __get($id) |
||
128 | |||
129 | /** |
||
130 | * Magic set access. |
||
131 | * |
||
132 | * @param string $id |
||
133 | * @param mixed $value |
||
134 | */ |
||
135 | public function __set($id, $value) |
||
139 | |||
140 | /** |
||
141 | * @param array $providers |
||
142 | */ |
||
143 | public function registerProviders(array $providers) |
||
149 | } |
||
150 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.