method
public
PusherInterface::push()
Сигнатура
public push(ProviderCollection $notifications) : void
Параметры
$notifications
ProviderCollection
Возвращаемое значение
void
Как применяется в PusherInterface
PusherInterface::push() — метод интерфейса \Bitrix\Tasks\Internals\Notification\PusherInterface модуля «Задачи».
Метод объекта: сначала нужен объект, реализующий PusherInterface.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\PusherInterface;
Loader::includeModule('tasks');
/** @var PusherInterface $object */
$notifications = null; // ProviderCollection
$object->push($notifications);push() есть и у других классов модуля «Задачи»: Controller, EventCollection, Pusher.
Исходный файл: source/tasks/lib/internals/notification/pusherinterface.php:7

