Passed
Push — master ( a58ef6...fc3cb3 )
by Alex
10:58 queued 01:08
created

TestingServiceLogicForRestTransport   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 34
rs 10
c 1
b 0
f 0
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()
18
    {
19
        return "ok";
20
    }
21
22
    public function privateMethod()
23
    {
24
        // nop
25
    }
26
27
    public function publicMethod()
28
    {
29
        // nop
30
    }
31
32
    public function methodException()
33
    {
34
        throw (new \Exception('Msg'));
35
    }
36
37
    public function methodRestException()
38
    {
39
        throw (new \Mezon\Rest\Exception('Msg', 0, 1, 1));
40
    }
41
}
42