예제 #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;
 }
예제 #2
0
 public function __construct($resourceOwnerId, $resourceOwnerType)
 {
     Ensure::string($resourceOwnerId, $resourceOwnerType);
     $this->resourceOwnerId = $resourceOwnerId;
     $this->resourceOwnerType = $resourceOwnerType;
 }