Completed
Push — master ( e0250b...fc23d8 )
by Tomas
02:44
created

AlwaysOkHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
namespace Tomaj\NetteApi\Handlers;
4
5
use Tomaj\NetteApi\Response\JsonApiResponse;
6
7
class AlwaysOkHandler extends BaseHandler
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12 3
    public function handle($params)
13
    {
14 3
        return new JsonApiResponse(200, ['status' => 'ok']);
15
    }
16
}
17