Skip to content

Commit

Permalink
Revert docblock deletions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Mar 21, 2024
1 parent 616240f commit dde13a4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Entities/TokenInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,24 @@

interface TokenInterface
{
/**
* Get the token's identifier.
*/
public function getIdentifier(): string;

/**
* Set the token's identifier.
*/
public function setIdentifier(mixed $identifier): void;

/**
* Get the token's expiry date time.
*/
public function getExpiryDateTime(): DateTimeImmutable;

/**
* Set the date time when the token expires.
*/
public function setExpiryDateTime(DateTimeImmutable $dateTime): void;

/**
Expand All @@ -31,15 +43,29 @@ public function setExpiryDateTime(DateTimeImmutable $dateTime): void;
*/
public function setUserIdentifier(string $identifier): void;

/**
* Get the token user's identifier.
*/
public function getUserIdentifier(): string|int|null;

/**
* Get the client that the token was issued to.
*/
public function getClient(): ClientEntityInterface;

/**
* Set the client that the token was issued to.
*/
public function setClient(ClientEntityInterface $client): void;

/**
* Associate a scope with the token.
*/
public function addScope(ScopeEntityInterface $scope): void;

/**
* Return an array of scopes associated with the token.
*
* @return ScopeEntityInterface[]
*/
public function getScopes(): array;
Expand Down

0 comments on commit dde13a4

Please sign in to comment.