File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/discount/gift/collection.php
Back
<?php namespace Bitrix\Sale\Discount\Gift; use Bitrix\Main\Type\Dictionary; class Collection extends Dictionary { public const TYPE_GRANT_ALL = 'all'; public const TYPE_GRANT_ONE = 'one'; protected $type = self::TYPE_GRANT_ONE; /** * GiftCollection constructor. * @param array $gifts * @param string $type */ public function __construct(array $gifts, $type) { $this->type = $type; parent::__construct($gifts); } protected function setGift(Gift $gift, $offset = null) { parent::offsetSet($offset, $gift); } public function offsetSet($offset, $value) { $this->setGift($value, $offset); } public function getGrantType(): string { return $this->type; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings