1 | <?php |
||
26 | abstract class ElementWithHandle extends Element implements interfaces\ElementWithHande |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var string Handle |
||
31 | */ |
||
32 | private $_handle; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | public function getHandle(): string |
||
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | public function setHandle(string $handle) |
||
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | public function attributes() |
||
65 | |||
66 | /** |
||
67 | * @return array |
||
68 | */ |
||
69 | public function attributeLabels() |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | public function rules() |
||
118 | |||
119 | } |
||
120 |
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.