ok
Direktori : /home2/selectio/www/fms-worksuite/vendor/square/square/src/Models/ |
Current File : /home2/selectio/www/fms-worksuite/vendor/square/square/src/Models/TerminalRefundQuery.php |
<?php declare(strict_types=1); namespace Square\Models; use stdClass; class TerminalRefundQuery implements \JsonSerializable { /** * @var TerminalRefundQueryFilter|null */ private $filter; /** * @var TerminalRefundQuerySort|null */ private $sort; /** * Returns Filter. */ public function getFilter(): ?TerminalRefundQueryFilter { return $this->filter; } /** * Sets Filter. * * @maps filter */ public function setFilter(?TerminalRefundQueryFilter $filter): void { $this->filter = $filter; } /** * Returns Sort. */ public function getSort(): ?TerminalRefundQuerySort { return $this->sort; } /** * Sets Sort. * * @maps sort */ public function setSort(?TerminalRefundQuerySort $sort): void { $this->sort = $sort; } /** * 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->filter)) { $json['filter'] = $this->filter; } if (isset($this->sort)) { $json['sort'] = $this->sort; } $json = array_filter($json, function ($val) { return $val !== null; }); return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }