Azure OSS for PHP API Reference

AccessToken
in package

FinalYes

Represents an OAuth access token and its expiry information.

Table of Contents

Properties

$expiresOn  : DateTimeInterface
$token  : string
$tokenType  : string

Methods

__construct()  : mixed
parseExpiresOn()  : DateTimeImmutable

Properties

$expiresOn read-only

public DateTimeInterface $expiresOn

Methods

__construct()

public __construct(string $token, DateTimeInterface $expiresOn, string $tokenType) : mixed
Parameters
$token : string

Token value sent in the Authorization header.

$expiresOn : DateTimeInterface

Instant at which the token expires.

$tokenType : string

Authorization scheme returned by Microsoft Entra ID.

parseExpiresOn()

private static parseExpiresOn(string|int|float $expiresOn) : DateTimeImmutable
Parameters
$expiresOn : string|int|float
Return values
DateTimeImmutable
On this page

Search results