Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
threadstrategycontext.php
1
<?php
2
3
namespace
Bitrix\Sender\Posting\SegmentThreadStrategy
;
4
5
use
Bitrix\Sender\Posting\SegmentThreadStrategy\ThreadStrategy
;
6
7
class
ThreadStrategyContext
8
{
9
public
static
function
buildStrategy
($type):?
ThreadStrategy
10
{
11
switch
($type)
12
{
13
case
ThreadStrategy::TEN
:
14
return
new
TenThreadsStrategy
();
15
break
;
16
case
ThreadStrategy::SINGLE
:
17
default
:
18
return
new
SingleThreadStrategy
();
19
break
;
20
}
21
}
22
}
Bitrix\Sender\Posting\SegmentThreadStrategy\SingleThreadStrategy
Definition
singlethreadstrategy.php:10
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy
Definition
tenthreadsstrategy.php:12
Bitrix\Sender\Posting\SegmentThreadStrategy\ThreadStrategyContext
Definition
threadstrategycontext.php:8
Bitrix\Sender\Posting\SegmentThreadStrategy\ThreadStrategyContext\buildStrategy
static buildStrategy($type)
Definition
threadstrategycontext.php:9
Bitrix\Sender\Posting\SegmentThreadStrategy\ThreadStrategy
Definition
threadstrategy.php:8
Bitrix\Sender\Posting\SegmentThreadStrategy\ThreadStrategy\SINGLE
const SINGLE
Definition
threadstrategy.php:10
Bitrix\Sender\Posting\SegmentThreadStrategy\ThreadStrategy\TEN
const TEN
Definition
threadstrategy.php:9
Bitrix\Sender\Posting\SegmentThreadStrategy
Definition
abstractthreadstrategy.php:3
modules
sender
lib
posting
segmentthreadstrategy
threadstrategycontext.php
Создано системой
1.10.0