ExpressResolution
in package
FinalYes
Answer of a module to "service for object ID": either the candidate targets (one per payment region whose quick price is switched on) or the reason why nothing can be activated.
Table of Contents
Constants
- ERROR_OBJECT_INACTIVE : string = 'objectInactive'
- ERROR_OBJECT_NOT_FOUND : string = 'objectNotFound'
- ERROR_UNKNOWN_SERVICE : string = 'unknownService'
Properties
Methods
- failed() : self
- found() : self
- isFound() : bool
- __construct() : mixed
Constants
ERROR_OBJECT_INACTIVE
public
string
ERROR_OBJECT_INACTIVE
= 'objectInactive'
ERROR_OBJECT_NOT_FOUND
public
string
ERROR_OBJECT_NOT_FOUND
= 'objectNotFound'
ERROR_UNKNOWN_SERVICE
public
string
ERROR_UNKNOWN_SERVICE
= 'unknownService'
Properties
$error read-only
public
string|null
$error
$targets read-only
public
array<string|int, mixed>
$targets
Methods
failed()
public
static failed(string $error) : self
Parameters
- $error : string
Return values
selffound()
public
static found(array<int, ExpressTarget> $targets) : self
Parameters
- $targets : array<int, ExpressTarget>
Return values
selfisFound()
public
isFound() : bool
Return values
bool__construct()
private
__construct(array<int, ExpressTarget> $targets, string|null $error) : mixed
Parameters
- $targets : array<int, ExpressTarget>
- $error : string|null