Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
MeasureRatioFactory.php
1<?php
2
4
6
16{
17 public const SIMPLE_MEASURE_RATIO = SimpleMeasureRatio::class;
18 public const MEASURE_RATIO_COLLECTION = MeasureRatioCollection::class;
19
20 protected $container;
21
28 {
29 $this->container = $container;
30 }
31
35 public function createEntity(): BaseMeasureRatio
36 {
37 return $this->container->make(self::SIMPLE_MEASURE_RATIO);
38 }
39
44 {
45 return $this->container->make(self::MEASURE_RATIO_COLLECTION);
46 }
47}