• プラグイン一覧
    - WCEX Item Combo Set
    - WCEX Amazon Pay
    - WCEX Wishlist お気に入りリスト
  • リリース情報
  • お役立ちコラム
  • お問い合わせ
  • サポート
    • よくある質問
      • WCEX Amazon Pay
      • WCEX Wishlist お気に入りリスト
      • wcex-item-combo-set
    • リファレンス
      • WCEX Amazon Pay
      • WCEX Wishlist お気に入りリスト
      • wcex-item-combo-set
新規会員登録
ログイン
新規会員登録
ログイン
カート
  • プラグイン一覧
    • - WCEX Item Combo Set
    • - WCEX Amazon Pay
    • - WCEX Wishlist お気に入りリスト
  • リリース情報
  • お役立ちコラム
  • サポート
    • - よくある質問
      • - WCEX Amazon Pay
      • - WCEX Wishlist お気に入りリスト
      • - wcex-item-combo-set
    • - リファレンス
      • - WCEX Amazon Pay
      • - WCEX Wishlist お気に入りリスト
      • - wcex-item-combo-set
  • お問い合わせ
Aivec APPs > wcex-item-combo-set > クラス > ComboGroup
レファレンス
バージョン
1.0.6
絞り込み:

目次

  • ソース
  • 関数

フック

  • アクション
  • フィルター

ファンクション

    クラス

    ComboGroup

    Represents a combo-set group

    ソース #ソース

    ファイル: src/Types/ComboGroup.php

    class ComboGroup implements JsonSerializable
    {
        /**
         * Group ID
         *
         * @var int
         */
        private $id;
    
        /**
         * Combo-set ID
         *
         * @var int
         */
        private $comboSetId;
    
        /**
         * Group label
         *
         * @var string
         */
        private $label;
    
        /**
         * Optional flag
         *
         * @var bool
         */
        private $optional;
    
        /**
         * Multi-select flag
         *
         * @var bool
         */
        private $enableMultiSelect;
    
        /**
         * Position in the group list
         *
         * Lower means higher priority
         *
         * @var int
         */
        private $position;
    
        /**
         * Items in the group
         *
         * @var GroupItem[]
         */
        private $items;
    
        /**
         * Created at UTC `DATETIME` string
         *
         * @var string
         */
        private $createdAt;
    
        /**
         * Updated at UTC `DATETIME` string
         *
         * @var string
         */
        private $updatedAt;
    
        /**
         * Constructs a combo group
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @param int         $id
         * @param int         $comboSetId
         * @param string      $label
         * @param bool        $optional
         * @param bool        $enableMultiSelect
         * @param int         $position
         * @param GroupItem[] $items
         * @param string      $createdAt
         * @param string      $updatedAt
         * @return void
         */
        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;
        }
    
        /**
         * Returns key-value representation of the object
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return array
         */
        public function jsonSerialize() {
            return [
                'id' => $this->id,
                'comboSetId' => $this->comboSetId,
                'label' => $this->label,
                'optional' => $this->optional,
                'enableMultiSelect' => $this->enableMultiSelect,
                'position' => $this->position,
                'items' => $this->items,
                'createdAt' => $this->createdAt,
                'updatedAt' => $this->updatedAt,
            ];
        }
    
        /**
         * Getter for `$this->id`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return int
         */
        public function getId() {
            return $this->id;
        }
    
        /**
         * Getter for `$this->comboSetId`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return int
         */
        public function getComboSetId() {
            return $this->comboSetId;
        }
    
        /**
         * Getter for `$this->label`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return string
         */
        public function getLabel() {
            return $this->label;
        }
    
        /**
         * Getter for `$this->optional`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return bool
         */
        public function getOptional() {
            return $this->optional;
        }
    
        /**
         * Getter for `$this->enableMultiSelect`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return bool
         */
        public function getEnableMultiSelect() {
            return $this->enableMultiSelect;
        }
    
        /**
         * Getter for `$this->position`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return int
         */
        public function getPosition() {
            return $this->position;
        }
    
        /**
         * Getter for `$this->items`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return GroupItem[]
         */
        public function getItems() {
            return $this->items;
        }
    
        /**
         * Getter for `$this->createdAt`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return string
         */
        public function getCreatedAt() {
            return $this->createdAt;
        }
    
        /**
         * Getter for `$this->updatedAt`
         *
         * @author Evan D Shaw <evandanielshaw@gmail.com>
         * @return string
         */
        public function getUpdatedAt() {
            return $this->updatedAt;
        }
    }
    

    ソースを伸ばす ソースを縮める


    関数 #関数

    Top ↑

    • __construct — Constructs a combo group
    • getComboSetId — Getter for `$this->comboSetId`
    • getCreatedAt — Getter for `$this->createdAt`
    • getEnableMultiSelect — Getter for `$this->enableMultiSelect`
    • getId — Getter for `$this->id`
    • getItems — Getter for `$this->items`
    • getLabel — Getter for `$this->label`
    • getOptional — Getter for `$this->optional`
    • getPosition — Getter for `$this->position`
    • getUpdatedAt — Getter for `$this->updatedAt`
    • jsonSerialize — Returns key-value representation of the object

    • 新規会員登録
    • ログイン
      • プラグイン一覧
      • 会社概要
      • リリース情報
      • よくある質問
      • お役立ちコラム
      • お問い合わせ
      • 個人情報保護方針
      • 特定商取引法に基づく表記
      • 情報セキュリティ基本方針
      • 利用規約

    アイベック合同会社は「Welcart」「Amazon Pay」の公式パートナーです。

    ※Amazon、Amazon.co.jp、Amazon Payおよびそれらのロゴは、Amazon.com,inc.またはその関連会社の商標です。
    ※LINE Pay、およびLINE Pay 提携サービスのロゴは、法律上保護を受ける商標です。

    © 2025 Aivec llc All Rights Reserved.