src/App/src/Handler/DefaultHandler.php
/**
     * @param ServerRequestInterface $request
     * @param $instance
     * @return ResponseInterface
     */
@param ServerRequestInterface $request
@param $instance
@return ResponseInterface
@param ServerRequestInterface $request @param $instance @return ResponseInterface
public function createResponse(ServerRequestInterface $request, $instance): ResponseInterface
    {
        try {
            return $this->responseFactory->createResponse(
                $request,
                $this->resourceGenerator->fromObject($instance, $request)
            );
        } catch (OutOfBoundsException $e) {
            throw \Api\App\Exception\OutOfBoundsException::create($e->getMessage());
        }
    }
public function createResponse ( ServerRequestInterface $ request , $ instance ) : ResponseInterface { try { return $ this -> responseFactory -> createResponse ( $ request , $ this -> resourceGenerator -> fromObject ( $ instance , $ request ) ) ; } catch ( OutOfBoundsException $ e ) { throw \ Api \ App \ Exception \ OutOfBoundsException :: create ( $ e -> getMessage ( ) ) ; } }
@param ServerRequestInterface $request
 @param $instance
 @return ResponseInterface
@param ServerRequestInterface $request @param $instance @return ResponseInterface