Completed
Push — master ( f86b78...03e4c8 )
by Samuel
12:42
created

UserGetHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
A __invoke() 0 4 1
1
<?php
2
3
namespace Kelemen\ApiNette\Handler;
4
5
use Nette\Http\Request;
6
use Nette\Http\Response;
7
use Tomaj\NetteApi\Response\JsonApiResponse;
8
9
class UserGetHandler extends BaseHandler
10
{
11
    public function validate()
12
    {
13
14
    }
15
16
    public function __invoke(Request $request, Response $response, callable $next)
17
    {
18
        return new JsonApiResponse(200, ['user get handler funguje!']);
19
    }
20
}