Schedule
in package
uses
CloneWith
FinalYes
DTO with complete schedule details.
Tags
Table of Contents
Properties
- $action : ScheduleAction|null
- $policies : SchedulePolicies
- $spec : ScheduleSpec
- $state : ScheduleState
Methods
- new() : self
- withAction() : self
- Returns a new instance with the specified action.
- withPolicies() : self
- withSpec() : self
- withState() : self
- __construct() : mixed
Properties
$action read-only
public
ScheduleAction|null
$action
$policies read-only
public
SchedulePolicies
$policies
$spec read-only
public
ScheduleSpec
$spec
$state read-only
public
ScheduleState
$state
Methods
new()
public
static new() : self
Return values
selfwithAction()
Returns a new instance with the specified action.
public
withAction(ScheduleAction|null $action) : self
Available types of actions:
- StartWorkflowAction - start a Workflow
Parameters
- $action : ScheduleAction|null
Return values
selfwithPolicies()
public
withPolicies(SchedulePolicies $policies) : self
Parameters
- $policies : SchedulePolicies
Return values
selfwithSpec()
public
withSpec(ScheduleSpec $spec) : self
Parameters
- $spec : ScheduleSpec
Return values
selfwithState()
public
withState(ScheduleState $state) : self
Parameters
- $state : ScheduleState
Return values
self__construct()
private
__construct() : mixed