関数
GroupItem::__construct( int $id, int $groupId, int $welitemSkuMetaId, string $itemLabel, int $itemQuantity, int|float $priceModifier, int $position, string $createdAt, string $updatedAt )
パラメータ パラメータ
- $id
(数値) (必須)
- $groupId
(数値) (必須)
- $welitemSkuMetaId
(数値) (必須)
- $itemLabel
(文字列) (必須)
- $itemQuantity
(数値) (必須)
- $priceModifier
(数値|float) (必須)
- $position
(数値) (必須)
- $createdAt
(文字列) (必須)
- $updatedAt
(文字列) (必須)
ファイル: src/Types/GroupItem.php
public function __construct(
$id,
$groupId,
$welitemSkuMetaId,
$itemLabel,
$itemQuantity,
$priceModifier,
$position,
$createdAt,
$updatedAt
) {
parent::__construct($welitemSkuMetaId);
$this->id = (int)$id;
$this->groupId = (int)$groupId;
$this->itemLabel = $itemLabel;
$this->itemQuantity = (int)$itemQuantity;
$this->priceModifier = (float)$priceModifier;
$this->position = (int)$position;
$this->createdAt = $createdAt;
$this->updatedAt = $updatedAt;
}