| 1 | <?php |
||
| 10 | abstract class AbstractTariffManager |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Tariff |
||
| 14 | */ |
||
| 15 | public $baseTariff; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var AbstractTariffForm |
||
| 19 | */ |
||
| 20 | public $form; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string The type used to find base tariff |
||
| 24 | */ |
||
| 25 | protected $type; |
||
| 26 | |||
| 27 | public function __construct($tariff = null) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Fills [[form]] property with a proper |
||
| 35 | * |
||
| 36 | * @param Tariff $tariff |
||
| 37 | * @throws InvalidConfigException |
||
| 38 | */ |
||
| 39 | protected function createForm($tariff = null) |
||
| 43 | |||
| 44 | protected function findBaseModel() |
||
| 54 | |||
| 55 | public function getType() |
||
| 59 | } |
||
| 60 |
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.