SelectSearchPatAction
in package
FinalYes
Action.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- __invoke() : ResponseInterface
- Action.
- transform() : ResponseInterface
- Transform to json response.
Properties
$patientsList
private
PatientsList
$patientsList
$responder
private
Responder
$responder
Methods
__construct()
The constructor.
public
__construct(PatientsList $patientsList, Responder $responder) : mixed
Parameters
- $patientsList : PatientsList
-
The user index list viewer
- $responder : Responder
-
The responder
__invoke()
Action.
public
__invoke(ServerRequestInterface $request, ResponseInterface $response, array<string|int, mixed> $args) : ResponseInterface
Parameters
- $request : ServerRequestInterface
-
The request
- $response : ResponseInterface
-
The response
- $args : array<string|int, mixed>
Return values
ResponseInterface —The response
transform()
Transform to json response.
private
transform(ResponseInterface $response, array<string|int, mixed> $sbs) : ResponseInterface
This could also be done within a specific Responder class.
Parameters
- $response : ResponseInterface
-
The response
- $sbs : array<string|int, mixed>
Return values
ResponseInterface —The response