method public static

EventCollection::getInstance()

Класс: \Bitrix\Tasks\Internals\Counter\Event\EventCollection

Сигнатура

public static getInstance() : self

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

self

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

EventCollection::getInstance() — метод класса \Bitrix\Tasks\Internals\Counter\Event\EventCollection модуля «Задачи».

Статический метод — вызывается через имя класса EventCollection, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Counter\Event\EventCollection;

Loader::includeModule('tasks');

$result = EventCollection::getInstance();
// $result: self

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

getInstance() есть и у других классов модуля «Задачи»: Counter, CounterService, EventHandler, EventHandler, EventResourceCollection, Group, GroupProvider, GroupRegistry.

Исходный файл: source/tasks/lib/internals/counter/event/eventcollection.php:29

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