iToken
MMO\oauth\interfaces · 1 symbol · generated 5 Oct 2026
interface MMO\oauth\interfaces\iToken
extends MMO\core\interfaces\iEntity- Namespace
MMO\oauth\interfaces- Implements
- iEntity
Methods7
Get the client that the token was issued to.
abstract function getClient(): MMO\oauth\interfaces\iClientGet the token's expiry date time.
abstract function getExpiryDate(): ?DateTimeInterfaceabstract function getIssuedDate(): DateTimeInterfaceabstract function getIssuer(): stringGet the token's expiry date time.
abstract function getStartingDate(): ?DateTimeInterfaceValidate token
abstract function isValid(): boolReturn the JWT claims for this token
abstract function toJWT(): MMO\oauth\helpers\JWTInherited members (48)
| Methods | Declared by | Description |
|---|
| addFlags($flags) | iEntity | |
| archive() | iEntity | |
| ArrayProperties() | iArrayProperties | |
| ArrayProperty($name) | iArrayProperties | |
| clearChanges() | iEntity | |
| compareTo($value) | iComparable | |
| debugName() | iEntity | |
| get($path, $default) | iEntity | |
| getChanges($asArray, $store) | iEntity | |
| getCollection() | iEntity | |
| getErrors() | iEntity | |
| getFlags() | iEntity | |
| getId() | iEntity | |
| getRepository() | iEntity | |
| getStatus() | iEntity | |
| getTitle() | iEntity | |
| hasStatusChanged() | iEntity | |
| HiddenPath($path) | iArrayProperties | |
| isArchive() | iEntity | |
| isChanged() | iEntity | |
| isCreated() | iEntity | |
| isFinal() | iEntity | |
| isRemoved() | iEntity | |
| loadArray($data, $coerceOptions, $fromStore) | iEntity | |
| loadFromStore($data) | iEntity | Load data as read from storage: not recorded as a change. |
| localName() | iEntity | Get the local name (collection name and this id) in the current repository |
| markChanged($keys) | iEntity | |
| mutate($type, $path, $value, $oldValue) | iMutationObserver | |
| offsetExists($offset) | ArrayAccess | |
| offsetGet($offset) | ArrayAccess | |
| offsetSet($offset, $value) | ArrayAccess | |
| offsetUnset($offset) | ArrayAccess | |
| removeFlags($flags) | iEntity | |
| removePermanently() | iEntity | Remove it for good: only an archived entity can be. |
| Schema() | iSchemaProvider | |
| setArrayPropertyOffset($key, $offset, $value, $coerceOptions) | iEntity | |
| setStatus($status) | iEntity | |
| store() | iEntity | |
| test($filter) | iEntity | |
| toArray($fields) | iArrayProperties | |
| toLink($attributes) | iEntity | |
| uid() | iIdentifiable | Get the unique identifier |