RadarStandaloneResponse
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $attemptId : string
- Unique identifier of the authentication attempt.
- $blocklistType : RadarType|null
- The type of blocklist entry that triggered the verdict. Only present if the control is `restriction`.
- $control : RadarStandaloneResponseControl|null
- The Radar control that triggered the verdict. Only present if the verdict is `block` or `challenge`.
- $reason : string
- A human-readable reason for the verdict.
- $verdict : RadarStandaloneResponseVerdict
- The verdict of the risk assessment.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$attemptId
Unique identifier of the authentication attempt.
public
string
$attemptId
$blocklistType
The type of blocklist entry that triggered the verdict. Only present if the control is `restriction`.
public
RadarType|null
$blocklistType
= null
$control
The Radar control that triggered the verdict. Only present if the verdict is `block` or `challenge`.
public
RadarStandaloneResponseControl|null
$control
= null
$reason
A human-readable reason for the verdict.
public
string
$reason
$verdict
The verdict of the risk assessment.
public
RadarStandaloneResponseVerdict
$verdict
Methods
__construct()
public
__construct(RadarStandaloneResponseVerdict $verdict, string $reason, string $attemptId[, RadarStandaloneResponseControl|null $control = null ][, RadarType|null $blocklistType = null ]) : mixed
Parameters
- $verdict : RadarStandaloneResponseVerdict
- $reason : string
- $attemptId : string
- $control : RadarStandaloneResponseControl|null = null
- $blocklistType : RadarType|null = 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>