PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
mycred
/
addons
/
buy-creds
/
gateways
/
Bitpay
<?php /** * @license Copyright 2011-2015 BitPay Inc., MIT License * see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE */ namespace Bitpay; /** * @package Bitpay */ class AccessToken implements AccessTokenInterface { /** * @var string */ protected $id; /** * @var string */ protected $email; /** * @var string */ protected $label; /** * @var boolean */ protected $useNonce; /** */ public function __construct() { /** * Set various defaults for this object. */ $this->useNonce = true; } /** * @param string $id * * @return AccessTokenInterface */ public function setId($id) { if (!empty($id) && is_string($id) && ctype_print($id)) { $this->id = trim($id); } return $this; } /** * @inheritdoc */ public function getId() { return $this->id; } /** * @param string $email * * @return AccessTokenInterface */ public function setEmail($email) { if (!empty($email) && is_string($email) && ctype_print($email)) { $this->email = trim($email); } return $this; } /** * @inheritdoc */ public function getEmail() { return $this->email; } /** * @param string $label * * @return AccessTokenInterface */ public function setLabel($label) { if (!empty($label) && is_string($label) && ctype_print($label)) { $this->label = trim($label); } return $this; } /** * @inheritdoc */ public function getLabel() { return $this->label; } /** * @inheritdoc */ public function isNonceDisabled() { return !($this->useNonce); } /** * Enable nonce usage * * @return AccessTokenInterface */ public function nonceEnable() { $this->useNonce = true; return $this; } /** * Disable nonce usage * * @return AccessTokenInterface */ public function nonceDisable() { $this->useNonce = false; return $this; } }
[+]
..
[-] Item.php
[edit]
[+]
Math
[+]
DependencyInjection
[-] BuyerInterface.php
[edit]
[-] Point.php
[edit]
[-] KeyInterface.php
[edit]
[-] PayoutTransactionInterface.php
[edit]
[-] PayoutInterface.php
[edit]
[-] InvoiceInterface.php
[edit]
[-] Autoloader.php
[edit]
[-] ApplicationInterface.php
[edit]
[-] KeyManager.php
[edit]
[-] Currency.php
[edit]
[-] ItemInterface.php
[edit]
[+]
Client
[+]
Util
[-] User.php
[edit]
[-] PayoutTransaction.php
[edit]
[-] PayoutInstruction.php
[edit]
[-] Key.php
[edit]
[-] Bitpay.php
[edit]
[+]
Network
[-] TokenInterface.php
[edit]
[-] PrivateKey.php
[edit]
[-] Buyer.php
[edit]
[-] Token.php
[edit]
[-] PublicKey.php
[edit]
[-] SinKey.php
[edit]
[+]
Storage
[+]
Config
[-] index.php
[edit]
[-] Bill.php
[edit]
[-] BillInterface.php
[edit]
[-] Application.php
[edit]
[-] Payout.php
[edit]
[-] Invoice.php
[edit]
[-] UserInterface.php
[edit]
[-] AccessToken.php
[edit]
[-] PayoutInstructionInterface.php
[edit]
[-] PointInterface.php
[edit]
[+]
Crypto
[-] CurrencyInterface.php
[edit]
[-] AccessTokenInterface.php
[edit]