Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
RequestVariantList
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 readResponse
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace BO\Zmsapi;
4
5use BO\Slim\Render;
6
7class RequestVariantList extends BaseController
8{
9    public function readResponse($request, $response, array $args)
10    {
11        $list = (new \BO\Zmsdb\RequestVariant())->readAll();
12
13        $msg = Response\Message::create($request);
14        $msg->data = $list;
15
16        $response = Render::withLastModified($response, time(), '0');
17        return Render::withJson($response, $msg->setUpdatedMetaData(), $msg->getStatuscode());
18    }
19}