T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/gositeme.com/public_html/whmcs/vendor/bitpay/php-client/src/Bitpay/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/public_html/whmcs/vendor/bitpay/php-client/src/Bitpay/Token.php
<?php
/**
 * @license Copyright 2011-2015 BitPay Inc., MIT License
 * see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE
 */

namespace Bitpay;

date_default_timezone_set('UTC');

/**
 * @package Bitpay
 */
class Token implements TokenInterface
{
    /**
     * @var string
     */
    protected $token;

    /**
     * @var string
     */
    protected $resource;

    /**
     * @var string
     */
    protected $facade;

    /**
     * @var \DateTime
     */
    protected $createdAt;

    /**
     * @var array
     */
    protected $policies;

    /**
     * @var string
     */
    protected $pairingCode;

    /**
     * @var \DateTime
     */
    protected $pairingExpiration;

    public function __construct()
    {
        $this->policies = array();
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return (string)$this->getToken();
    }

    /**
     * @return string
     */
    public function getToken()
    {
        return $this->token;
    }

    /**
     * @param string
     * @return Token
     */
    public function setToken($token)
    {
        $this->token = $token;

        return $this;
    }

    /**
     * @return string
     */
    public function getResource()
    {
        return $this->resource;
    }

    /**
     * @param string
     * @return Token
     */
    public function setResource($resource)
    {
        $this->resource = $resource;

        return $this;
    }

    /**
     * @return string
     */
    public function getFacade()
    {
        return $this->facade;
    }

    /**
     * @param string
     * @return Token
     */
    public function setFacade($facade)
    {
        $this->facade = $facade;

        return $this;
    }

    /**
     * @return \DateTime
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * @param \DateTime
     * @return Token
     */
    public function setCreatedAt(\DateTime $createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * @return array
     */
    public function getPolicies()
    {
        return $this->policies;
    }

    /**
     * @param string
     * @return Token
     */
    public function setPolicies($policies)
    {
        $this->policies = $policies;

        return $this;
    }

    /**
     * @return string
     */
    public function getPairingCode()
    {
        return $this->pairingCode;
    }

    /**
     * @param string
     * @return Token
     */
    public function setPairingCode($pairingCode)
    {
        $this->pairingCode = $pairingCode;

        return $this;
    }

    /**
     * @return \DateTime
     */
    public function getPairingExpiration()
    {
        return $this->pairingExpiration;
    }

    /**
     * @param \DateTime
     * @return Token
     */
    public function setPairingExpiration(\DateTime $pairingExpiration)
    {
        $this->pairingExpiration = $pairingExpiration;

        return $this;
    }
}

CasperSecurity Mini