1 | <?php |
||
13 | abstract class AbstractTariffManager extends Object |
||
14 | { |
||
15 | /** |
||
16 | * @var Tariff[] they array of all available base tariffs |
||
17 | * @see findBaseTariffs() |
||
18 | */ |
||
19 | protected $baseTariffs; |
||
20 | |||
21 | /** |
||
22 | * @var AbstractTariffForm |
||
23 | */ |
||
24 | public $form; |
||
25 | |||
26 | /** |
||
27 | * @var array options used to build [[form]] |
||
28 | * @see buildForm() |
||
29 | */ |
||
30 | public $formOptions = []; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | public $scenario; |
||
36 | |||
37 | /** |
||
38 | * @var Tariff The actual tariff |
||
39 | */ |
||
40 | protected $tariff; |
||
41 | |||
42 | /** |
||
43 | * @var string The type used to find base tariff |
||
44 | */ |
||
45 | protected $type; |
||
46 | |||
47 | public function init() |
||
52 | |||
53 | /** |
||
54 | * Fills [[form]] property with a proper [[AbstractTariffForm]] object |
||
55 | */ |
||
56 | protected function buildForm() |
||
64 | |||
65 | protected function getFormOptions() |
||
69 | |||
70 | protected function findBaseTariffs() |
||
85 | |||
86 | public function getType() |
||
90 | |||
91 | /** |
||
92 | * @var TariffCalculator |
||
93 | */ |
||
94 | protected $_calculator; |
||
95 | |||
96 | /** |
||
97 | * @return TariffCalculator |
||
98 | */ |
||
99 | protected function calculator() |
||
109 | |||
110 | public function calculation() |
||
114 | |||
115 | /** |
||
116 | * @param Tariff $tariff |
||
117 | */ |
||
118 | public function setTariff($tariff) |
||
122 | } |
||
123 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.