for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Alexandre
* Date: 10/03/2018
* Time: 15:57
*/
namespace OAuth2\Credentials;
abstract class Token
{
* @var string
protected $token;
protected $scope;
protected $clientIdentifier;
* @var string|null
protected $resourceOwnerIdentifier;
* @var int
protected $expiresAt;
public function __construct(string $token, string $scope, string $clientIdentifier, ?string $resourceOwnerIdentifier,
int $expiresAt)
$this->token = $token;
$this->scope = $scope;
$this->clientIdentifier = $clientIdentifier;
$this->resourceOwnerIdentifier = $resourceOwnerIdentifier;
$this->expiresAt = $expiresAt;
}
* @return string
public function getToken(): string
return $this->token;
public function getScope(): string
return $this->scope;
public function getClientIdentifier(): string
return $this->clientIdentifier;
* @return string|null
public function getResourceOwnerIdentifier(): ?string
return $this->resourceOwnerIdentifier;
* @return int
public function getExpiresAt(): int
return $this->expiresAt;