method
public
PropertyValueCollectionBase::addItem()
Сигнатура
public addItem(CollectableEntity $property) : CollectableEntity|Result
Параметры
$property
CollectableEntity
Возвращаемое значение
CollectableEntity|Result
Как применяется в PropertyValueCollectionBase
PropertyValueCollectionBase::addItem() — метод класса \Bitrix\Sale\PropertyValueCollectionBase модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр PropertyValueCollectionBase.
use Bitrix\Main\Loader;
use Bitrix\Sale\PropertyValueCollectionBase;
Loader::includeModule('sale');
/** @var PropertyValueCollectionBase $object */
$property = null; // CollectableEntity
$result = $object->addItem($property);
// $result: CollectableEntity|ResultДругие методы PropertyValueCollectionBase
addItem() есть и у других классов модуля «Интернет-магазин»: Manager, MultiControlString, Pool, PropertyValueCollection.
Исходный файл: source/sale/lib/propertyvaluecollectionbase.php:86

