1 | <?php |
||
9 | abstract class TariffManager |
||
10 | { |
||
11 | /** |
||
12 | * @var string The type used to find base tariff |
||
13 | */ |
||
14 | protected $type; |
||
15 | |||
16 | /** |
||
17 | * @var Tariff |
||
18 | */ |
||
19 | public $baseModel; |
||
20 | |||
21 | /** |
||
22 | * @var Tariff |
||
23 | */ |
||
24 | public $model; |
||
25 | |||
26 | public function __construct($model = null) |
||
31 | |||
32 | protected function setModel($model = null) |
||
36 | |||
37 | protected function findBaseModel() |
||
47 | |||
48 | public function getType() |
||
52 | } |
||
53 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.