1 | <?php |
||
9 | class Rest extends Service |
||
10 | { |
||
11 | public function isCallable($method) |
||
21 | |||
22 | /** |
||
23 | * @param object $call |
||
24 | * @param mixed $data |
||
25 | * |
||
26 | * @return array|int|\RedBean_OODBBean |
||
27 | */ |
||
28 | public function call($call, $data = null) |
||
36 | |||
37 | /** |
||
38 | * @param object $call |
||
39 | * @param mixed $data |
||
40 | * |
||
41 | * @return array|int|\RedBean_OODBBean |
||
42 | */ |
||
43 | protected function restCall($call, $data = null) |
||
53 | |||
54 | /** |
||
55 | * @param string $http |
||
56 | * @param string $path |
||
57 | * @param mixed $data |
||
58 | */ |
||
59 | protected function callPath($http, $path, $data = null) |
||
65 | |||
66 | protected function restHandler() |
||
70 | } |
||
71 |
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.