関数
ComboGroup::__construct( int $id, int $comboSetId, string $label, bool $optional, bool $enableMultiSelect, int $position, Aivec\Welcart\Extensions\ItemComboSet\Types\GroupItem[] $items, string $createdAt, string $updatedAt )
パラメータ パラメータ
- $id
(数値) (必須)
- $comboSetId
(数値) (必須)
- $label
(文字列) (必須)
- $optional
(bool) (必須)
- $enableMultiSelect
(bool) (必須)
- $position
(数値) (必須)
- $items
(GroupItem[]) (必須)
- $createdAt
(文字列) (必須)
- $updatedAt
(文字列) (必須)
ファイル: src/Types/ComboGroup.php
public function __construct($id, $comboSetId, $label, $optional, $enableMultiSelect, $position, $items, $createdAt, $updatedAt) { $this->id = (int)$id; $this->comboSetId = (int)$comboSetId; $this->label = (string)$label; $this->optional = (bool)$optional; $this->enableMultiSelect = (bool)$enableMultiSelect; $this->position = (int)$position; $this->items = is_array($items) ? $items : []; $this->createdAt = $createdAt; $this->updatedAt = $updatedAt; }