TaskAddedToFlowWithHimselfDistributionStrategy::__construct()
Класс: \Bitrix\Tasks\Internals\Notification\Strategy\Default\TaskAddedToFlowWithHimselfDistributionStrategy
Сигнатура
public __construct(UserRepositoryInterface $userRepository, TaskObject $task, Dictionary $dictionary) : mixed
Параметры
$userRepository
UserRepositoryInterface
$task
TaskObject
$dictionary
Dictionary
Возвращаемое значение
mixed
Как применяется в TaskAddedToFlowWithHimselfDistributionStrategy
TaskAddedToFlowWithHimselfDistributionStrategy::__construct() — метод класса \Bitrix\Tasks\Internals\Notification\Strategy\Default\TaskAddedToFlowWithHimselfDistributionStrategy модуля «Задачи».
Конструктор: создаёт экземпляр TaskAddedToFlowWithHimselfDistributionStrategy — обязательные аргументы перечислены в разделе «Параметры».
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\Strategy\Default\TaskAddedToFlowWithHimselfDistributionStrategy;
Loader::includeModule('tasks');
$userRepository = null; // UserRepositoryInterface
$task = null; // TaskObject
$dictionary = null; // Dictionary
$object = new TaskAddedToFlowWithHimselfDistributionStrategy($userRepository, $task, $dictionary);Другие методы TaskAddedToFlowWithHimselfDistributionStrategy
__construct() есть и у других классов модуля «Задачи»: AbstractCase, AbstractConverter, AccessInstaller, AccompliceConverter, Agent, AuditorConverter, BaseEvent, ChecklistAddRule.
Исходный файл: source/tasks/lib/internals/notification/strategy/default/taskaddedtoflowwithhimselfdistributionstrategy.php:27

