����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/var/www/html/luckymerchan/vendor/phpjuice/paypal-http-client/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/var/www/html/luckymerchan/vendor/phpjuice/paypal-http-client/src/AccessToken.php
<?php

namespace PayPal\Http;

class AccessToken
{
    /**
     * Access token returned by PayPal.
     */
    protected string $token;

    /**
     * Access token type.
     *
     */
    protected string $token_type;

    /**
     * Time for access token to expires in seconds.
     */
    protected int $expires_in;

    /**
     * Time for creating access token to expires in seconds.
     */
    protected int $created_at;

    public function __construct(string $token, string $token_type, int $expires_in)
    {
        $this->token = $token;
        $this->token_type = $token_type;
        $this->expires_in = $expires_in;
        $this->created_at = time();
    }

    /**
     * Get the token.
     */
    public function getToken(): ?string
    {
        return $this->token;
    }

    /**
     * Get the token type.
     */
    public function getTokenType(): ?string
    {
        return $this->token_type;
    }

    /**
     * Returns authorization string.
     */
    public function authorizationString(): string
    {
        return $this->token_type.' '.$this->token;
    }

    /**
     * Determines if the token is expired or not.
     */
    public function isExpired(): bool
    {
        return time() >= ($this->created_at + $this->expires_in);
    }
}

ZeroDay Forums Mini