1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
AbstractOperation.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
10
11abstract class AbstractOperation
12{
13 private Mapper $mapper;
14 private GroupRegistry $registry;
15
16 abstract public function run(): GroupResult;
17
18 protected function getMapper(): Mapper
19 {
20 $this->mapper ??= new Mapper();
21
22 return $this->mapper;
23 }
24
25 protected function getRegistry(): GroupRegistry
26 {
27 $this->registry ??= GroupRegistry::getInstance();
28
29 return $this->registry;
30 }
31}