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