class User

Properties

protected Client $api
protected UrlGenerator $url

Methods

__construct(Client $api, UrlGenerator $url)

No description

__invoke(Document $document, ServerRequestInterface $request)

No description

getApiDocument(ServerRequestInterface $request, string $username)

<p>Get the result of an API request to show a user.</p>

Details

__construct(Client $api, UrlGenerator $url)

Parameters

Client $api
UrlGenerator $url

__invoke(Document $document, ServerRequestInterface $request)

Parameters

Document $document
ServerRequestInterface $request

protected getApiDocument(ServerRequestInterface $request, string $username)

<p>Get the result of an API request to show a user.</p>

Parameters

ServerRequestInterface $request
string $username

Exceptions

ModelNotFoundException