method
public
ProviderCollection::current()
Класс: \Bitrix\Tasks\Internals\Notification\ProviderCollection
Сигнатура
public current() : ProviderInterface
Возвращаемое значение
ProviderInterface
Как применяется в ProviderCollection
ProviderCollection::current() — метод класса \Bitrix\Tasks\Internals\Notification\ProviderCollection модуля «Задачи».
Метод объекта: сначала нужен экземпляр ProviderCollection.
use Bitrix\Main\Loader;
use Bitrix\Tasks\Internals\Notification\ProviderCollection;
Loader::includeModule('tasks');
/** @var ProviderCollection $object */
$result = $object->current();
// $result: ProviderInterfaceДругие методы ProviderCollection
current() есть и у других классов модуля «Задачи»: CounterState, InDatabase, InMemory.
Исходный файл: source/tasks/lib/internals/notification/providercollection.php:46

