Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factory.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Queue\Producer
;
4
5
use
Bitrix\Calendar\Core\Queue\Interfaces
;
6
7
class
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
}
Bitrix\Calendar\Core\Queue\Producer\Factory
Definition
factory.php:8
Bitrix\Calendar\Core\Queue\Producer\Factory\getProduser
static getProduser(?string $type=self::PRODUCER_TYPES['immediate'])
Definition
factory.php:14
Bitrix\Calendar\Core\Queue\Producer\Factory\PRODUCER_TYPES
const PRODUCER_TYPES
Definition
factory.php:9
Bitrix\Calendar\Core\Queue\Interfaces\Producer
Definition
producer.php:8
Bitrix\Calendar\Core\Queue\Interfaces
Definition
consumer.php:3
Bitrix\Calendar\Core\Queue\Producer
Definition
factory.php:3
modules
calendar
lib
core
queue
producer
factory.php
Создано системой
1.10.0