1 | <?php |
||
21 | class PriceFactory extends \hiqdev\php\billing\price\PriceFactory |
||
22 | { |
||
23 | protected $creators = [ |
||
24 | SinglePrice::class => 'createSinglePrice', |
||
25 | EnumPrice::class => 'createEnumPrice', |
||
26 | TemplatePrice::class => 'createTemplatePrice', |
||
27 | ]; |
||
28 | |||
29 | 1 | public function __construct(array $types = [], $defaultClass = null) |
|
30 | { |
||
31 | 1 | parent::__construct($types, $defaultClass); |
|
32 | |||
33 | 1 | $this->types['TemplatePrice'] = TemplatePrice::class; |
|
34 | 1 | } |
|
35 | |||
36 | public function createTemplatePrice(TemplatePriceDto $dto): TemplatePrice |
||
40 | } |
||
41 |