State
Class State
Table of Contents
Constants
- HALTED = 'H'
- INIT = 'I'
- NEWISH = 'N'
- PAUSED = 'P'
- PLANNED = 'T'
- READY = 'R'
- SENDING = 'S'
- SENT = 'Y'
- STOPPED = 'X'
- WAITING = 'W'
Methods
- __construct() : mixed
- Constructor.
- canHalt() : bool
- Check halt possibility.
- canInit() : bool
- Check init possibility.
- canPause() : bool
- Check pause possibility.
- canPlan() : bool
- Check plan possibility.
- canReady() : bool
- Check ready possibility.
- canReset() : bool
- Check reset possibility.
- canResume() : bool
- Check resume possibility.
- canSend() : bool
- Check send possibility.
- canSendErrors() : bool
- Check send errors possibility.
- canStop() : bool
- Check stop possibility.
- canWait() : bool
- Check wait possibility.
- getCode() : string
- Get current state code.
- getDateCreate() : string|DateTime|null
- Get create date.
- getDatePause() : string|DateTime|null
- Get send date.
- getDateSend() : string|DateTime|null
- Get sent date.
- getDateSent() : string|DateTime|null
- Get send date.
- getLastExecutedDate() : string|DateTime|null
- Get last exec date.
- getList() : array<string|int, mixed>
- Get states.
- getName() : string
- Get current state name.
- getPlannedDateSend() : string|DateTime|null
- Get planned date send.
- halt() : bool
- Halt.
- init() : bool
- Init.
- isFinished() : bool
- Is finished.
- isHalted() : bool
- Is halted.
- isPaused() : bool
- Is sending paused.
- isPlanned() : bool
- Is sending planned.
- isReady() : bool
- Is ready to send.
- isSending() : bool
- Is sending started.
- isSendingLimitExceeded() : bool
- Is sending limit exceeded.
- isSendingLimitTemporary() : bool
- Is sending limit exceeded.
- isSendingLimitWaiting() : bool
- Is sending limit waiting.
- isSendingPlanned() : bool
- Is sending limit exceeded.
- isSent() : bool
- Is sent.
- isStopped() : bool
- Is stopped.
- isWaiting() : bool
- Is sending started.
- pause() : bool
- Pause.
- plan() : bool
- Plan sending.
- ready() : bool
- Change state to ready.
- reset() : bool
- Reset.
- resume() : bool
- Resume.
- send() : bool
- Send.
- sendErrors() : bool
- Send errors.
- stop() : bool
- Stop.
- updatePlannedDateSend() : bool
- Update planed date send.
- wait() : bool
- Wait.
- wasPostingBuilt() : bool
- Is posting was built.
- wasStartedSending() : bool
- Is sending was started.
Constants
HALTED
public
mixed
HALTED
= 'H'
INIT
public
mixed
INIT
= 'I'
NEWISH
public
mixed
NEWISH
= 'N'
PAUSED
public
mixed
PAUSED
= 'P'
PLANNED
public
mixed
PLANNED
= 'T'
READY
public
mixed
READY
= 'R'
SENDING
public
mixed
SENDING
= 'S'
SENT
public
mixed
SENT
= 'Y'
STOPPED
public
mixed
STOPPED
= 'X'
WAITING
public
mixed
WAITING
= 'W'
Methods
__construct()
Constructor.
public
__construct(Letter $letter) : mixed
Parameters
- $letter : Letter
-
Letter.
canHalt()
Check halt possibility.
public
canHalt() : bool
Return values
boolcanInit()
Check init possibility.
public
canInit() : bool
Return values
boolcanPause()
Check pause possibility.
public
canPause() : bool
Return values
boolcanPlan()
Check plan possibility.
public
canPlan() : bool
Return values
boolcanReady()
Check ready possibility.
public
canReady() : bool
Return values
boolcanReset()
Check reset possibility.
public
canReset() : bool
Return values
boolcanResume()
Check resume possibility.
public
canResume() : bool
Return values
boolcanSend()
Check send possibility.
public
canSend() : bool
Return values
boolcanSendErrors()
Check send errors possibility.
public
canSendErrors() : bool
Return values
boolcanStop()
Check stop possibility.
public
canStop() : bool
Return values
boolcanWait()
Check wait possibility.
public
canWait() : bool
Return values
boolgetCode()
Get current state code.
public
getCode() : string
Return values
stringgetDateCreate()
Get create date.
public
getDateCreate() : string|DateTime|null
Return values
string|DateTime|nullgetDatePause()
Get send date.
public
getDatePause() : string|DateTime|null
Return values
string|DateTime|nullgetDateSend()
Get sent date.
public
getDateSend() : string|DateTime|null
Return values
string|DateTime|nullgetDateSent()
Get send date.
public
getDateSent() : string|DateTime|null
Return values
string|DateTime|nullgetLastExecutedDate()
Get last exec date.
public
getLastExecutedDate() : string|DateTime|null
Return values
string|DateTime|nullgetList()
Get states.
public
static getList() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get current state name.
public
getName() : string
Return values
stringgetPlannedDateSend()
Get planned date send.
public
getPlannedDateSend() : string|DateTime|null
Return values
string|DateTime|nullhalt()
Halt.
public
halt() : bool
Tags
Return values
boolinit()
Init.
public
init() : bool
Tags
Return values
boolisFinished()
Is finished.
public
isFinished() : bool
Return values
boolisHalted()
Is halted.
public
isHalted() : bool
Return values
boolisPaused()
Is sending paused.
public
isPaused() : bool
Return values
boolisPlanned()
Is sending planned.
public
isPlanned() : bool
Return values
boolisReady()
Is ready to send.
public
isReady() : bool
Return values
boolisSending()
Is sending started.
public
isSending() : bool
Return values
boolisSendingLimitExceeded()
Is sending limit exceeded.
public
isSendingLimitExceeded() : bool
Return values
boolisSendingLimitTemporary()
Is sending limit exceeded.
public
isSendingLimitTemporary() : bool
Return values
boolisSendingLimitWaiting()
Is sending limit waiting.
public
isSendingLimitWaiting() : bool
Return values
boolisSendingPlanned()
Is sending limit exceeded.
public
isSendingPlanned() : bool
Return values
boolisSent()
Is sent.
public
isSent() : bool
Return values
boolisStopped()
Is stopped.
public
isStopped() : bool
Return values
boolisWaiting()
Is sending started.
public
isWaiting() : bool
Return values
boolpause()
Pause.
public
pause() : bool
Tags
Return values
boolplan()
Plan sending.
public
plan(Date $sendDate) : bool
Parameters
- $sendDate : Date
-
Send date.
Tags
Return values
boolready()
Change state to ready.
public
ready() : bool
Tags
Return values
boolreset()
Reset.
public
reset() : bool
Tags
Return values
boolresume()
Resume.
public
resume() : bool
Tags
Return values
boolsend()
Send.
public
send() : bool
Tags
Return values
boolsendErrors()
Send errors.
public
sendErrors() : bool
Tags
Return values
boolstop()
Stop.
public
stop() : bool
Tags
Return values
boolupdatePlannedDateSend()
Update planed date send.
public
updatePlannedDateSend(Date $date) : bool
Parameters
- $date : Date
-
Date.
Return values
boolwait()
Wait.
public
wait([MethodSchedule|null $method = null ]) : bool
Parameters
- $method : MethodSchedule|null = null
-
Method.
Tags
Return values
boolwasPostingBuilt()
Is posting was built.
public
wasPostingBuilt() : bool
Return values
boolwasStartedSending()
Is sending was started.
public
wasStartedSending() : bool