class Discussion

Methods

__construct(Client $api, UrlGenerator $url, Factory $view)

No description

__invoke(Document $document, ServerRequestInterface $request)

No description

object
getApiDocument(ServerRequestInterface $request, string $id, array $params = [])

Get the result of an API request to show a discussion.

object
getPostsApiDocument(ServerRequestInterface $request, array $params)

Get the result of an API request to list the posts of a discussion.

Details

__construct(Client $api, UrlGenerator $url, Factory $view)

Parameters

Client $api
UrlGenerator $url
Factory $view

Document __invoke(Document $document, ServerRequestInterface $request)

Parameters

Document $document
ServerRequestInterface $request

Return Value

Document

protected object getApiDocument(ServerRequestInterface $request, string $id, array $params = [])

Get the result of an API request to show a discussion.

Parameters

ServerRequestInterface $request
string $id
array $params

Return Value

object

Exceptions

RouteNotFoundException

protected object getPostsApiDocument(ServerRequestInterface $request, array $params)

Get the result of an API request to list the posts of a discussion.

Parameters

ServerRequestInterface $request
array $params

Return Value

object

Exceptions

RouteNotFoundException