methodRestException()   A
last analyzed

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(): 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