1 | <?php |
||
13 | abstract class AbstractTariffManager extends Object |
||
14 | { |
||
15 | /** |
||
16 | * @var Tariff[] array of all available base tariffs |
||
17 | */ |
||
18 | protected $baseTariffs; |
||
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 | /**protected |
||
37 | * @var Tariff The actual tariff |
||
38 | */ |
||
39 | protected $tariff; |
||
40 | |||
41 | /** |
||
42 | * @var string The type used to find base tariff |
||
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 findBaseTariffs() |
||
82 | |||
83 | public function getType() |
||
87 | |||
88 | /** |
||
89 | * @param Tariff $tariff |
||
90 | */ |
||
91 | public function setTariff($tariff) |
||
95 | } |
||
96 |