1 | <?php |
||
23 | class Mobile extends AbstractCondition |
||
24 | { |
||
25 | /** |
||
26 | * @var Yesno |
||
27 | */ |
||
28 | protected $sourceYesNo; |
||
29 | |||
30 | /** |
||
31 | * @var MobileDetectorInterface |
||
32 | */ |
||
33 | private $mobileDetector; |
||
34 | |||
35 | /** |
||
36 | * Constructor |
||
37 | * @param Context $context |
||
38 | * @param Yesno $sourceYesNo |
||
39 | * @param MobileDetectorInterface $mobileDetector |
||
40 | * @param array $data |
||
41 | */ |
||
42 | public function __construct( |
||
52 | |||
53 | /** |
||
54 | * @param AbstractModel $model |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function validate(AbstractModel $model) |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getInputType() |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getValueElementType() |
||
80 | |||
81 | /** |
||
82 | * @return array|mixed |
||
83 | */ |
||
84 | public function getValueSelectOptions() |
||
94 | |||
95 | /** |
||
96 | * @return Mobile |
||
97 | */ |
||
98 | public function loadAttributeOptions() |
||
108 | |||
109 | |||
110 | /** |
||
111 | * @param Context $context |
||
112 | * @param array $data |
||
113 | * @codeCoverageIgnore |
||
114 | */ |
||
115 | protected function callParentConstructor(Context $context, array $data): void |
||
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.