ValidationResult
Table of Contents
Constants
-
FAILED
= 2
-
PASSED
= 0
-
SKIPPED
= 1
Properties
-
$message
: string
-
$passed
: bool
-
$skipped
: bool
-
$tip
: string
Methods
-
__construct()
: mixed
-
fail()
: static
-
failed()
: bool
-
formattedMessage()
: string
-
message()
: string
-
pass()
: static
-
passed()
: bool
-
skip()
: static
-
skipped()
: bool
-
statusCode()
: int
-
tip()
: string|false
-
withTip()
: static
-
formatFailed()
: string
-
formatPassed()
: string
-
formatResult()
: string
-
formatSkipped()
: string
-
formatTimeString()
: string
-
formatTip()
: string
-
withMessage()
: static
FAILED
public
final mixed
FAILED
= 2
PASSED
public
final mixed
PASSED
= 0
SKIPPED
public
final mixed
SKIPPED
= 1
$message
protected
string
$message
$passed
protected
bool
$passed
= false
$skipped
protected
bool
$skipped
= false
$tip
protected
string
$tip
__construct()
public
__construct([string $defaultMessage = 'Generic check' ]) : mixed
Parameters
-
$defaultMessage
: string
= 'Generic check'
-
fail()
public
fail([string|null $withMessage = null ]) : static
Parameters
-
$withMessage
: string|null
= null
-
failed()
public
failed() : bool
public
formattedMessage([string|null $withTimeString = null ]) : string
Parameters
-
$withTimeString
: string|null
= null
-
message()
public
message() : string
pass()
public
pass([string|null $withMessage = null ]) : static
Parameters
-
$withMessage
: string|null
= null
-
passed()
public
passed() : bool
skip()
public
skip([string|null $withMessage = null ]) : static
Parameters
-
$withMessage
: string|null
= null
-
skipped()
public
skipped() : bool
statusCode()
public
statusCode() : int
tip()
public
tip() : string|false
Return values
string|false
withTip()
public
withTip(string $withTip) : static
Parameters
-
$withTip
: string
-
protected
formatFailed(string $message) : string
Parameters
-
$message
: string
-
protected
formatPassed(string $message) : string
Parameters
-
$message
: string
-
protected
formatResult(string $message) : string
Parameters
-
$message
: string
-
protected
formatSkipped(string $message) : string
Parameters
-
$message
: string
-
protected
formatTimeString(string $time) : string
Parameters
-
$time
: string
-
protected
formatTip(string $tip) : string
Parameters
-
$tip
: string
-
withMessage()
protected
withMessage(string|null $withMessage) : static
Parameters
-
$withMessage
: string|null
-