TestingServiceLogicForRestTransport   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 4
c 2
b 1
f 0
dl 0
loc 34
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A methodException() 0 3 1
A methodRestException() 0 3 1
A publicMethod() 0 2 1
A ok() 0 3 1
A privateMethod() 0 2 1
A __construct() 0 2 1
1
<?php
2
namespace Mezon\Service\Tests;
3
4
use Mezon\Service\ServiceLogic;
5
6
class TestingServiceLogicForRestTransport extends ServiceLogic
7
{
8
9
    /**
10
     * Constructor
11
     */
12
    public function __construct()
13
    {
14
        // nop
15
    }
16
17
    public function ok(): string
18
    {
19
        return "ok";
20
    }
21
22
    public function privateMethod(): void
23
    {
24
        // nop
25
    }
26
27
    public function publicMethod(): void
28
    {
29
        // nop
30
    }
31
32
    public function methodException(): void
33
    {
34
        throw (new \Exception('Msg'));
35
    }
36
37
    public function methodRestException(): void
38
    {
39
        throw (new \Mezon\Rest\Exception('Msg', 0, 1, '1'));
40
    }
41
}
42