trait TaskErrors

Task Errors trait

Properties

protected array $taskErrors Task errors

Methods

mixed
getError(int $index = 0)

Get error

array
getErrors()

Get errors

bool
hasError()

Return true if have error

void
addError(string $errorMessage)

Add error

void
clearErrors()

Clear Error

Details

at line 30
mixed getError(int $index = 0)

Get error

Parameters

int $index

Return Value

mixed

at line 40
array getErrors()

Get errors

Return Value

array

at line 50
bool hasError()

Return true if have error

Return Value

bool

at line 61
void addError(string $errorMessage)

Add error

Parameters

string $errorMessage

Return Value

void

at line 71
void clearErrors()

Clear Error

Return Value

void