PushFormat uses ContextCustomer
Table of Contents
Methods
- __construct() : mixed
- format() : array<string|int, mixed>
- formatMessageUpdate() : array<string|int, mixed>
- formatStartRecordVoice() : array<string|int, mixed>
- getContext() : Context
- Returns the local or global context for the action.
- setContext() : self
- Sets new context for operations.
- setContextUser() : self
- validateDataForInform() : Result
- withContext() : static
- Provides local context for the action.
- withContextUser() : static
- Provides local context for the action.
Methods
__construct()
public
__construct(Message $message) : mixed
Parameters
- $message : Message
format()
public
format() : array<string|int, mixed>
Return values
array<string|int, mixed>formatMessageUpdate()
public
formatMessageUpdate() : array<string|int, mixed>
Return values
array<string|int, mixed>formatStartRecordVoice()
public
static formatStartRecordVoice(Chat $chat) : array<string|int, mixed>
Parameters
- $chat : Chat
Return values
array<string|int, mixed>getContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextsetContext()
Sets new context for operations.
public
setContext(Context|null $context) : self
Parameters
- $context : Context|null
Return values
selfsetContextUser()
public
setContextUser(mixed $user) : self
Parameters
- $user : mixed
Return values
selfvalidateDataForInform()
public
validateDataForInform() : Result
Return values
ResultwithContext()
Provides local context for the action.
public
withContext(Context|null $context) : static
Parameters
- $context : Context|null
Return values
staticwithContextUser()
Provides local context for the action.
public
withContextUser(int|User|User $user) : static
Parameters
- $user : int|User|User