ShiftPlanServiceResult extends BaseServiceResult
Table of Contents
Constants
- ERROR_CODE_OVERLAPPING_SHIFT_PLAN = 'OVERLAPPING_SHIFT_PLAN'
Methods
- addScheduleNotFoundError() : mixed
- addShiftNotFoundError() : mixed
- addShiftPlanNotFoundError() : mixed
- createByResult() : static
- createWithErrorText() : static
- getFirstError() : Error|null
- getSchedule() : mixed
- getShift() : Shift
- getShiftPlan() : ShiftPlan
- getShiftWithDate() : ShiftWithDate
- isSuccessResult() : mixed
- setSchedule() : mixed
- setShift() : $this
- setShiftPlan() : $this
- setShiftWithDate() : mixed
Constants
ERROR_CODE_OVERLAPPING_SHIFT_PLAN
public
mixed
ERROR_CODE_OVERLAPPING_SHIFT_PLAN
= 'OVERLAPPING_SHIFT_PLAN'
Methods
addScheduleNotFoundError()
public
addScheduleNotFoundError() : mixed
addShiftNotFoundError()
public
addShiftNotFoundError() : mixed
addShiftPlanNotFoundError()
public
addShiftPlanNotFoundError() : 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|nullgetSchedule()
public
getSchedule() : mixed
getShift()
public
getShift() : Shift
Return values
ShiftgetShiftPlan()
public
getShiftPlan() : ShiftPlan
Return values
ShiftPlangetShiftWithDate()
public
getShiftWithDate() : ShiftWithDate
Return values
ShiftWithDateisSuccessResult()
public
static isSuccessResult(Result $result) : mixed
Parameters
- $result : Result
setSchedule()
public
setSchedule(Schedule $schedule) : mixed
Parameters
- $schedule : Schedule
setShift()
public
setShift(Shift $shift) : $this
Parameters
- $shift : Shift
Return values
$thissetShiftPlan()
public
setShiftPlan(ShiftPlan $shiftPlan) : $this
Parameters
- $shiftPlan : ShiftPlan
Return values
$thissetShiftWithDate()
public
setShiftWithDate(ShiftWithDate $shiftWithDate) : mixed
Parameters
- $shiftWithDate : ShiftWithDate