Completed
Push — master ( ceaf5e...6b4122 )
by Jonas
01:54
created

VersionAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of SteamScore.
5
 *
6
 * (c) SteamScore <[email protected]>
7
 *
8
 * This Source Code Form is subject to the terms of the Mozilla Public
9
 * License, v. 2.0. If a copy of the MPL was not distributed with this
10
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11
 */
12
13
namespace SteamScore\Api\Http\Actions;
14
15
use Psr\Http\Message\ResponseInterface as Response;
16
use Psr\Http\Message\ServerRequestInterface as Request;
17
use Zend\Diactoros\Response\JsonResponse;
18
use Zend\Stratigility\MiddlewareInterface;
19
20
class VersionAction implements MiddlewareInterface
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function __invoke(Request $request, Response $response, callable $out = null)
26
    {
27
        return new JsonResponse(['ack' => time()]);
28
    }
29
}
30