method public

CommentCreatedStrategy::__construct()

Класс: \Bitrix\Tasks\Internals\Notification\Strategy\Default\CommentCreatedStrategy

Сигнатура

public __construct(UserRepositoryInterface $userRepository, TaskObject $task, Dictionary $dictionary) : mixed

Параметры

$userRepository UserRepositoryInterface
$task TaskObject
$dictionary Dictionary

Возвращаемое значение

mixed

Как применяется в CommentCreatedStrategy

CommentCreatedStrategy::__construct() — метод класса \Bitrix\Tasks\Internals\Notification\Strategy\Default\CommentCreatedStrategy модуля «Задачи».

Конструктор: создаёт экземпляр CommentCreatedStrategy — обязательные аргументы перечислены в разделе «Параметры».

use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\Strategy\Default\CommentCreatedStrategy;

Loader::includeModule('tasks');

$userRepository = null; // UserRepositoryInterface
$task = null; // TaskObject
$dictionary = null; // Dictionary
$object = new CommentCreatedStrategy($userRepository, $task, $dictionary);

Другие методы CommentCreatedStrategy

__construct() есть и у других классов модуля «Задачи»: AbstractCase, AbstractConverter, AccessInstaller, AccompliceConverter, Agent, AuditorConverter, BaseEvent, ChecklistAddRule.

Исходный файл: source/tasks/lib/internals/notification/strategy/default/commentcreatedstrategy.php:11

Что будем искать? Например,Продвижение