1 | <?php |
||
12 | abstract class AbstractTariffManager extends Object |
||
13 | { |
||
14 | /** |
||
15 | * @var Tariff[] array of all available base tariffs |
||
16 | */ |
||
17 | protected $baseTariffs; |
||
18 | |||
19 | /** |
||
20 | * @var AbstractTariffForm |
||
21 | */ |
||
22 | public $form; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | public $scenario; |
||
28 | |||
29 | /** |
||
30 | * @var Tariff The actual tariff |
||
31 | */ |
||
32 | protected $tariff; |
||
33 | |||
34 | /** |
||
35 | * @var string The type used to find base tariff |
||
36 | */ |
||
37 | protected $type; |
||
38 | |||
39 | public function init() |
||
44 | |||
45 | /** |
||
46 | * Fills [[form]] property with a proper [[AbstractTariffForm]] object |
||
47 | */ |
||
48 | protected function buildForm() |
||
52 | |||
53 | protected function findBaseTariffs() |
||
64 | |||
65 | public function getType() |
||
69 | |||
70 | /** |
||
71 | * @param Tariff $tariff |
||
72 | */ |
||
73 | public function setTariff($tariff) |
||
77 | } |
||
78 |
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.