UserTrackAction
in package
FinalYes
Action.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- __invoke() : ResponseInterface
- Action.
- transform() : ResponseInterface
- Transform result to response.
Properties
$responder
private
Responder
$responder
$userReader
private
UserReader
$userReader
Methods
__construct()
The constructor.
public
__construct(UserReader $userViewer, Responder $responder) : mixed
Parameters
- $userViewer : UserReader
-
The service
- $responder : Responder
-
The responder
__invoke()
Action.
public
__invoke(ServerRequestInterface $request, ResponseInterface $response) : ResponseInterface
Parameters
- $request : ServerRequestInterface
-
The request
- $response : ResponseInterface
-
The response
Return values
ResponseInterface —The response
transform()
Transform result to response.
private
transform(ResponseInterface $response, UserDataDoc $user) : ResponseInterface
Parameters
- $response : ResponseInterface
-
The response
- $user : UserDataDoc
-
The user
Return values
ResponseInterface —The response