Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
factory.php
1<?php
2
4
6
7class Factory
8{
9 public const PRODUCER_TYPES = [
10 'delayed' => 'delayed', // TODO: implement it
11 'immediate' => 'immediate',
12 ];
13
14 public static function getProduser(?string $type = self::PRODUCER_TYPES['immediate']): Interfaces\Producer
15 {
16 switch ($type)
17 {
18 // case self::PRODUCER_TYPES['delayed']: // TODO: implement it
19 // return new Producer();
20 default:
21 return new Producer();
22 }
23 }
24}
static getProduser(?string $type=self::PRODUCER_TYPES['immediate'])
Definition factory.php:14