Result
Table of Contents
Methods
-
__construct()
: mixed
-
addError()
: mixed
-
addException()
: mixed
-
addWarning()
: mixed
-
adoptErrors()
: mixed
-
getData()
: null
-
getErrorCount()
: mixed
-
getErrors()
: mixed
-
isA()
: mixed
-
isErrorsEmpty()
: mixed
-
isSuccess()
: mixed
-
loadErrors()
: mixed
-
setData()
: mixed
__construct()
public
__construct() : mixed
addError()
public
addError(mixed $code, mixed $message[, mixed $type = Error::TYPE_FATAL ]) : mixed
Parameters
-
$code
: mixed
-
-
$message
: mixed
-
-
$type
: mixed
= Error::TYPE_FATAL
-
addException()
public
addException(mixed $e[, string $message = '' ][, array<string|int, mixed> $settings = array() ]) : mixed
Parameters
-
$e
: mixed
-
-
$message
: string
= ''
-
-
$settings
: array<string|int, mixed>
= array()
-
addWarning()
public
addWarning(mixed $code, mixed $message) : mixed
Parameters
-
$code
: mixed
-
-
$message
: mixed
-
adoptErrors()
public
adoptErrors(Result|Result $source[, array<string|int, mixed> $transform = array() ]) : mixed
Parameters
-
$source
: Result|Result
-
-
$transform
: array<string|int, mixed>
= array()
-
getData()
public
getData() : null
getErrorCount()
public
getErrorCount() : mixed
getErrors()
public
getErrors() : mixed
isA()
public
static isA(mixed $obj) : mixed
Parameters
-
$obj
: mixed
-
isErrorsEmpty()
public
isErrorsEmpty() : mixed
isSuccess()
public
isSuccess() : mixed
loadErrors()
public
loadErrors(Collection $errors) : mixed
Parameters
-
$errors
: Collection
-
setData()
public
setData(mixed $data) : mixed
Parameters
-
$data
: mixed
-