RiskScoreReason
in package
implements
JsonSerializable
The risk score multiplier and the reasons for that multiplier.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $multiplier : float|null
- $reasons : array<string|int, Reason>
Methods
- __construct() : mixed
- jsonSerialize() : array<string, mixed>
Properties
$multiplier read-only
public
float|null
$multiplier
The factor by which the risk score is increased (if the value is greater than 1) or decreased (if the value is less than 1) for given risk reason(s). Multipliers representing a significant percentage increase or decrease in the risk score lead to risk reason(s) being present.
$reasons read-only
public
array<string|int, Reason>
$reasons
This array contains \MaxMind\MinFraud\Model\Reason objects that describe one of the reasons for the multiplier
Methods
__construct()
public
__construct(array<string, mixed>|null $response) : mixed
Parameters
- $response : array<string, mixed>|null
jsonSerialize()
public
jsonSerialize() : array<string, mixed>