Example #1
0
 public function __construct($token, \DateTimeImmutable $expiresAt, $clientId, ResourceOwner $resourceOwner = null, array $scopes = [])
 {
     Ensure::string($token);
     $this->accessToken = $token;
     $this->expiresAt = $expiresAt;
     $this->clientId = $clientId;
     $this->resourceOwner = $resourceOwner;
     $this->scopes = $scopes;
 }
 public function __construct($resourceOwnerId, $resourceOwnerType)
 {
     Ensure::string($resourceOwnerId, $resourceOwnerType);
     $this->resourceOwnerId = $resourceOwnerId;
     $this->resourceOwnerType = $resourceOwnerType;
 }