1 | <?php |
||
14 | class PricePresenterFactory |
||
15 | { |
||
16 | /** |
||
17 | * @var array map of model class to its presenter |
||
18 | */ |
||
19 | protected $map = [ |
||
20 | Price::class => PricePresenter::class, |
||
21 | ModelGroupPrice::class => ModelGroupPricePresenter::class, |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $cache = []; |
||
28 | |||
29 | /** |
||
30 | * @param string $name |
||
31 | * @return PricePresenter |
||
32 | * @throws InvalidConfigException |
||
33 | */ |
||
34 | public function build($name) |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function getMap(): array |
||
54 | |||
55 | } |
||
56 |