whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
square
/
square
/
src
/
Models
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/square/square/src/Models/CatalogQueryItemsForItemOptions.php
<?php declare(strict_types=1); namespace Square\Models; use stdClass; /** * The query filter to return the items containing the specified item option IDs. */ class CatalogQueryItemsForItemOptions implements \JsonSerializable { /** * @var string[]|null */ private $itemOptionIds; /** * Returns Item Option Ids. * * A set of `CatalogItemOption` IDs to be used to find associated * `CatalogItem`s. All Items that contain all of the given Item Options (in any order) * will be returned. * * @return string[]|null */ public function getItemOptionIds(): ?array { return $this->itemOptionIds; } /** * Sets Item Option Ids. * * A set of `CatalogItemOption` IDs to be used to find associated * `CatalogItem`s. All Items that contain all of the given Item Options (in any order) * will be returned. * * @maps item_option_ids * * @param string[]|null $itemOptionIds */ public function setItemOptionIds(?array $itemOptionIds): void { $this->itemOptionIds = $itemOptionIds; } /** * Encode this object to JSON * * @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields * are set. (default: false) * * @return mixed */ public function jsonSerialize(bool $asArrayWhenEmpty = false) { $json = []; if (isset($this->itemOptionIds)) { $json['item_option_ids'] = $this->itemOptionIds; } $json = array_filter($json, function ($val) { return $val !== null; }); return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }
Copyright ©2021 || Defacer Indonesia