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

