1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
SectionFactory.php
См. документацию.
1<?php
2
3namespace Bitrix\Catalog\v2\Section;
4
5use Bitrix\Catalog\v2\IoC\ContainerContract;
6
16{
17 public const SECTION = Section::class;
18 public const SECTION_COLLECTION = SectionCollection::class;
19
20 protected $container;
21
28 {
29 $this->container = $container;
30 }
31
35 public function createEntity(): Section
36 {
37 return $this->container->make(self::SECTION);
38 }
39
43 public function createCollection(): SectionCollection
44 {
46 return $this->container->make(self::SECTION_COLLECTION);
47 }
48}
__construct(ContainerContract $container)
Определения SectionFactory.php:27