OperationResult
in package
The OperationResult pairs an origin with a result.
Table of Contents
- $error : string|null
- $exception : Exception|null
- $origin : Origin
- $value : mixed
- __construct() : mixed
- isSuccessful() : bool
- Determine whether this result represents success or failure.
Properties
$error read-only
public
string|null
$error
$exception read-only
public
Exception|null
$exception
$origin read-only
public
Origin
$origin
$value read-only
public
mixed
$value
Methods
__construct()
public
__construct(Origin $origin, Result $result) : mixed
Parameters
Return values
mixed —isSuccessful()
Determine whether this result represents success or failure.
public
isSuccessful() : bool