1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс EntityCollection
Граф наследования:EntityCollection:
EntityCollectionInterface BasketItemCollection BasketPropertiesCollectionBase EntityPropertyValueCollection PayableItemCollection PaymentCollection ReserveQuantityCollection ShipmentCollection ShipmentItemCollection ShipmentItemStoreCollection TradeBindingCollection

Открытые члены

 __construct (EntityInterface ... $items)
 count ()
 isEmpty ()
 getIterator ()
 add (EntityInterface $item)
 find (callable $callback)
 filter (callable $callback)
 map (callable $callback)

Защищенные статические члены

static getEntityClass ()

Защищенные данные

array $items = []

Подробное описание

См. определение в файле EntityCollection.php строка 9

Конструктор(ы)

◆ __construct()

__construct ( EntityInterface ... $items)

См. определение в файле EntityCollection.php строка 13

Методы

◆ add()

add ( EntityInterface $item)

Add item to the collection and check its class.

Аргументы
EntityInterface$item
Возвращает
void
Исключения
ArgumentExceptionIf passed item of the wrong class.

Замещает EntityCollectionInterface.

См. определение в файле EntityCollection.php строка 39

◆ count()

count ( )

См. определение в файле EntityCollection.php строка 21

◆ filter()

filter ( callable $callback)

Замещает EntityCollectionInterface.

См. определение в файле EntityCollection.php строка 65

◆ find()

find ( callable $callback)

Замещает EntityCollectionInterface.

См. определение в файле EntityCollection.php строка 49

◆ getEntityClass()

getEntityClass ( )
staticprotected
Возвращает
string

См. определение в файле EntityCollection.php строка 81

◆ getIterator()

getIterator ( )

См. определение в файле EntityCollection.php строка 31

◆ isEmpty()

isEmpty ( )

Замещает EntityCollectionInterface.

См. определение в файле EntityCollection.php строка 26

◆ map()

map ( callable $callback)

Run a map over each of the items in the collection

Аргументы
callable$callback
Возвращает
array Result of applying callback to each item of the collection

Замещает EntityCollectionInterface.

См. определение в файле EntityCollection.php строка 73

Поля

◆ $items

array $items = []
protected

См. определение в файле EntityCollection.php строка 11


Объявления и описания членов класса находятся в файле: