1 | <?php |
||
12 | abstract class AbstractTariffManager extends Object |
||
13 | { |
||
14 | /** |
||
15 | * @var Tariff[] they array of all available parent tariffs |
||
16 | * @see findParentTariffs() |
||
17 | */ |
||
18 | protected $parentTariffs; |
||
19 | |||
20 | /** |
||
21 | * @var AbstractTariffForm |
||
22 | */ |
||
23 | public $form; |
||
24 | |||
25 | /** |
||
26 | * @var array options used to build [[form]] |
||
27 | * @see buildForm() |
||
28 | */ |
||
29 | public $formOptions = []; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | public $scenario; |
||
35 | |||
36 | /** |
||
37 | * @var Tariff The actual tariff |
||
38 | */ |
||
39 | protected $tariff; |
||
40 | |||
41 | /** |
||
42 | * @var string The type used to find parent tariffs |
||
43 | */ |
||
44 | protected $type; |
||
45 | |||
46 | public function init() |
||
51 | |||
52 | /** |
||
53 | * Fills [[form]] property with a proper [[AbstractTariffForm]] object |
||
54 | */ |
||
55 | protected function buildForm() |
||
63 | |||
64 | protected function getFormOptions() |
||
68 | |||
69 | protected function findParentTariffs() |
||
84 | |||
85 | public function getType() |
||
89 | |||
90 | /** |
||
91 | * @param Tariff $tariff |
||
92 | */ |
||
93 | public function setTariff($tariff) |
||
97 | } |
||
98 |