CheckResult
in package
Read onlyYes
FinalYes
Immutable outcome of one diagnostic check.
Table of Contents
Properties
- $message : string
- $name : string
- $scope : CheckScope
- $status : CheckStatus
Methods
- __construct() : mixed
- fail() : self
- pass() : self
- toArray() : array{name: string, status: string, scope: string, message: string}
- warn() : self
Properties
$message
public
string
$message
$name
public
string
$name
$scope
public
CheckScope
$scope
= CheckScope::Boot
$status
public
CheckStatus
$status
Methods
__construct()
public
__construct(string $name, CheckStatus $status, string $message[, CheckScope $scope = CheckScope::Boot ]) : mixed
Parameters
- $name : string
- $status : CheckStatus
- $message : string
- $scope : CheckScope = CheckScope::Boot
fail()
public
static fail(string $name, string $message[, CheckScope $scope = CheckScope::Boot ]) : self
Parameters
- $name : string
- $message : string
- $scope : CheckScope = CheckScope::Boot
Return values
selfpass()
public
static pass(string $name, string $message[, CheckScope $scope = CheckScope::Boot ]) : self
Parameters
- $name : string
- $message : string
- $scope : CheckScope = CheckScope::Boot
Return values
selftoArray()
public
toArray() : array{name: string, status: string, scope: string, message: string}
Return values
array{name: string, status: string, scope: string, message: string}warn()
public
static warn(string $name, string $message[, CheckScope $scope = CheckScope::Boot ]) : self
Parameters
- $name : string
- $message : string
- $scope : CheckScope = CheckScope::Boot