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

