RecipientStrategyInterface::getRecipients()
Класс: \Bitrix\Tasks\Internals\Notification\Strategy\RecipientStrategyInterface
Сигнатура
public getRecipients() : array<string|int, User>
Возвращаемое значение
array<string|int, User>
Как применяется в RecipientStrategyInterface
RecipientStrategyInterface::getRecipients() — метод интерфейса \Bitrix\Tasks\Internals\Notification\Strategy\RecipientStrategyInterface модуля «Задачи».
Метод объекта: сначала нужен объект, реализующий RecipientStrategyInterface.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\Strategy\RecipientStrategyInterface;
Loader::includeModule('tasks');
/** @var RecipientStrategyInterface $object */
$result = $object->getRecipients();
// $result: array<string|int, User>Другие методы RecipientStrategyInterface
getRecipients() есть и у других классов модуля «Задачи»: CommentCreatedStrategy, FakeStrategy, NotificationReplyStrategy, RegularTaskReplicatedStrategy, RegularTaskStartedStrategy, TaskAddedToFlowWithHimselfDistributionStrategy, TaskAddedToFlowWithManualDistributionStrategy, TaskCreatedStrategy.
Исходный файл: source/tasks/lib/internals/notification/strategy/recipientstrategyinterface.php:15

