class User

Methods

__construct(Client $api, UrlGenerator $url)

No description

__invoke(Document $document, ServerRequestInterface $request)

No description

object
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

Document __invoke(Document $document, ServerRequestInterface $request)

Parameters

Document $document
ServerRequestInterface $request

Return Value

Document

protected object getApiDocument(ServerRequestInterface $request, string $username)

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

Parameters

ServerRequestInterface $request
string $username

Return Value

object

Exceptions

ModelNotFoundException