whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
square
/
square
/
src
/
Models
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/square/square/src/Models/LoyaltyEventLocationFilter.php
<?php declare(strict_types=1); namespace Square\Models; use stdClass; /** * Filter events by location. */ class LoyaltyEventLocationFilter implements \JsonSerializable { /** * @var string[] */ private $locationIds; /** * @param string[] $locationIds */ public function __construct(array $locationIds) { $this->locationIds = $locationIds; } /** * Returns Location Ids. * * The [location]($m/Location) IDs for loyalty events to query. * If multiple values are specified, the endpoint uses * a logical OR to combine them. * * @return string[] */ public function getLocationIds(): array { return $this->locationIds; } /** * Sets Location Ids. * * The [location]($m/Location) IDs for loyalty events to query. * If multiple values are specified, the endpoint uses * a logical OR to combine them. * * @required * @maps location_ids * * @param string[] $locationIds */ public function setLocationIds(array $locationIds): void { $this->locationIds = $locationIds; } /** * 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 = []; $json['location_ids'] = $this->locationIds; $json = array_filter($json, function ($val) { return $val !== null; }); return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }
Copyright ©2021 || Defacer Indonesia