3declare(strict_types=1);
5namespace Bitrix\Im\V2\Promotion\Entity;
8use Bitrix\Im\V2\Rest\RestConvertible;
9use Bitrix\Main\Validation\Rule\ElementsType;
10use Bitrix\Main\Validation\Rule\Recursive\Validatable;
15 #[ElementsType(className: Promotion::class)]
17 private array $promotions;
21 $this->promotions = $promotions ?: [];
26 $this->promotions = array_merge($this->promotions, $promotions);
31 public function merge(
self $promotionList): self
33 $this->promotions = array_merge($this->promotions, $promotionList->promotions);
60 return new ArrayIterator($this->promotions);
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)