Mental Space

ListContactsAction
in package

FinalYes

Action.

Table of Contents

Properties

$msgRepo  : MessagesRepository
$responder  : Responder

Methods

__construct()  : mixed
The constructor.
__invoke()  : ResponseInterface
Action.
transform()  : ResponseInterface
Transform to json response.

Properties

Methods

__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 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>

Dont remember

Return values
ResponseInterface

The response


        
On this page

Search results