ViolationRulesServiceResult extends BaseServiceResult
Table of Contents
Methods
- addScheduleNotFoundError() : mixed
- addViolationRulesNotFoundError() : mixed
- createByResult() : static
- createWithErrorText() : static
- getFirstError() : Error|null
- getViolationRules() : ViolationRules
- isSuccessResult() : mixed
- setViolationRules() : mixed
Methods
addScheduleNotFoundError()
public
addScheduleNotFoundError() : mixed
addViolationRulesNotFoundError()
public
addViolationRulesNotFoundError() : mixed
createByResult()
public
static createByResult(Result $result) : static
Parameters
- $result : Result
Return values
staticcreateWithErrorText()
public
static createWithErrorText(mixed $text[, mixed $code = 0 ]) : static
Parameters
- $text : mixed
- $code : mixed = 0
Return values
staticgetFirstError()
public
getFirstError() : Error|null
Return values
Error|nullgetViolationRules()
public
getViolationRules() : ViolationRules
Return values
ViolationRulesisSuccessResult()
public
static isSuccessResult(Result $result) : mixed
Parameters
- $result : Result
setViolationRules()
public
setViolationRules(ViolationRules $violationRules) : mixed
Parameters
- $violationRules : ViolationRules