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

methodException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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