AgentInstanceSession
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $agentInstanceId : string
- The agent instance the session belongs to.
- $createdAt : DateTimeImmutable
- Timestamp when the session was created.
- $expiresAt : DateTimeImmutable
- Timestamp when the session expires.
- $id : string
- Unique identifier of the agent instance session.
- $object : string
- Distinguishes the agent instance session object.
- $revokedAt : DateTimeImmutable|null
- Timestamp when the session was revoked; `null` if it has not been revoked.
- $status : UserSessionsStatus
- Derived from `revoked_at` and `expires_at` at read time; a revoked session stays `revoked` even after it expires.
- $updatedAt : DateTimeImmutable
- Timestamp when the session was last updated.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$agentInstanceId
The agent instance the session belongs to.
public
string
$agentInstanceId
$createdAt
Timestamp when the session was created.
public
DateTimeImmutable
$createdAt
$expiresAt
Timestamp when the session expires.
public
DateTimeImmutable
$expiresAt
$id
Unique identifier of the agent instance session.
public
string
$id
$object
Distinguishes the agent instance session object.
public
string
$object
$revokedAt
Timestamp when the session was revoked; `null` if it has not been revoked.
public
DateTimeImmutable|null
$revokedAt
$status
Derived from `revoked_at` and `expires_at` at read time; a revoked session stays `revoked` even after it expires.
public
UserSessionsStatus
$status
$updatedAt
Timestamp when the session was last updated.
public
DateTimeImmutable
$updatedAt
Methods
__construct()
public
__construct(string $object, string $id, string $agentInstanceId, UserSessionsStatus $status, DateTimeImmutable $expiresAt, DateTimeImmutable|null $revokedAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
- $object : string
- $id : string
- $agentInstanceId : string
- $status : UserSessionsStatus
- $expiresAt : DateTimeImmutable
- $revokedAt : DateTimeImmutable|null
- $createdAt : DateTimeImmutable
- $updatedAt : DateTimeImmutable
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>