UserSessionsImpersonator
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Information about the impersonator if this session was created via impersonation.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $email : string
- The email address of the WorkOS Dashboard user who is impersonating the user.
- $reason : string|null
- The justification the impersonator gave for impersonating the user.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
The email address of the WorkOS Dashboard user who is impersonating the user.
public
string
$email
$reason
The justification the impersonator gave for impersonating the user.
public
string|null
$reason
Methods
__construct()
public
__construct(string $email, string|null $reason) : mixed
Parameters
- $email : string
- $reason : string|null
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>