ClientAccount extends Handler uses Container
The Client Account event handler
Table of Contents
Methods
| update() | Reacts to a triggered event by performing an update |
| getFromContainer() | Fetch an item from the container |
| clientsDelete() | Performs the Clients.delete action |
Methods
update()
Reacts to a triggered event by performing an update
public
update(EventInterface $event) : EventInterface
Parameters
- $event : EventInterface
-
The event triggered
Return values
EventInterface —$event The processed event object
getFromContainer()
Fetch an item from the container
protected
getFromContainer(string $service) : mixed
Parameters
- $service : string
-
The name of the service from the container to fetch
Return values
mixed —The service if found, otherwise null
clientsDelete()
Performs the Clients.delete action
private
clientsDelete(int $client_id) : mixed
Parameters
- $client_id : int
-
The ID of the client to delete