Push uses ContextCustomer
Table of Contents
Methods
- getContext() : Context
- Returns the local or global context for the action.
- getInstance() : self
- sendFull() : void
- sendIdOnly() : void
- setContext() : self
- Sets new context for operations.
- setContextUser() : self
- withContext() : static
- Provides local context for the action.
- withContextUser() : static
- Provides local context for the action.
Methods
getContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextgetInstance()
public
static getInstance() : self
Return values
selfsendFull()
public
sendFull(LinkRestConvertible $link, string $eventName, array<string|int, mixed> $endpoint) : void
Parameters
- $link : LinkRestConvertible
- $eventName : string
- $endpoint : array<string|int, mixed>
sendIdOnly()
public
sendIdOnly(LinkRestConvertible $link, string $eventName, array<string|int, mixed> $endpoint) : void
Parameters
- $link : LinkRestConvertible
- $eventName : string
- $endpoint : array<string|int, mixed>
setContext()
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
selfwithContext()
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