| 1 | <?php |
||
| 6 | class CreateTypeRequest extends AbstractRequest |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @return array|mixed |
||
| 10 | */ |
||
| 11 | public function getData() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return string |
||
| 23 | */ |
||
| 24 | public function getType() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $value |
||
| 31 | * @return CreateTypeRequest |
||
| 32 | */ |
||
| 33 | public function setType($value) |
||
| 37 | |||
| 38 | public function setParameter($key, $value) |
||
| 42 | |||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getEndpoint() |
||
| 51 | |||
| 52 | protected function createResponse($data) |
||
| 56 | } |
||
| 57 |
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 theSoncalls the wrong method in the parent class.