| 1 | <?php |
||
| 3 | class DbRowSimple { |
||
| 4 | |||
| 5 | /** |
||
| 6 | * @param Entity $object |
||
| 7 | * @param mixed $rowId |
||
| 8 | * |
||
| 9 | * @return Entity |
||
| 10 | */ |
||
| 11 | public function getById($object, $rowId) { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Entity $object |
||
| 25 | */ |
||
| 26 | public function deleteById($object) { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param Entity $object |
||
| 36 | */ |
||
| 37 | public function insert($object) { |
||
| 60 | |||
| 61 | } |
||
| 62 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.