Файловый менеджер - Редактировать - /home/avadvi5/public_html/wp-content/plugins/wpforms/vendor_prefixed/square/square/src/Models/RetrieveGiftCardFromNonceRequest.php
Ðазад
<?php declare (strict_types=1); namespace WPForms\Vendor\Square\Models; use stdClass; /** * A request to retrieve a gift card by using a payment token. */ class RetrieveGiftCardFromNonceRequest implements \JsonSerializable { /** * @var string */ private $nonce; /** * @param string $nonce */ public function __construct(string $nonce) { $this->nonce = $nonce; } /** * Returns Nonce. * The payment token of the gift card to retrieve. Payment tokens are generated by the * Web Payments SDK or In-App Payments SDK. */ public function getNonce() : string { return $this->nonce; } /** * Sets Nonce. * The payment token of the gift card to retrieve. Payment tokens are generated by the * Web Payments SDK or In-App Payments SDK. * * @required * @maps nonce */ public function setNonce(string $nonce) : void { $this->nonce = $nonce; } /** * Encode this object to JSON * * @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields * are set. (default: false) * * @return array|stdClass */ #[\ReturnTypeWillChange] // @phan-suppress-current-line PhanUndeclaredClassAttribute for (php < 8.1) public function jsonSerialize(bool $asArrayWhenEmpty = \false) { $json = []; $json['nonce'] = $this->nonce; $json = \array_filter($json, function ($val) { return $val !== null; }); return !$asArrayWhenEmpty && empty($json) ? new stdClass() : $json; } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка