ExceptionReview   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A outbound() 0 3 1
A inbound() 0 3 1
A exception() 0 3 2
1
<?php
2
/**
3
 * Exception review
4
 * User: moyo
5
 * Date: 2018/6/1
6
 * Time: 2:37 PM
7
 */
8
9
namespace Carno\Web\Handlers;
10
11
use Carno\Chain\Layered;
12
use Carno\Coroutine\Context;
13
use Throwable;
14
15
class ExceptionReview implements Layered
16
{
17
    /**
18
     * @param mixed $message
19
     * @param Context $ctx
20
     * @return mixed
21
     */
22
    public function inbound($message, Context $ctx)
23
    {
24
        return $message;
25
    }
26
27
    /**
28
     * @param mixed $message
29
     * @param Context $ctx
30
     * @return mixed
31
     */
32
    public function outbound($message, Context $ctx)
33
    {
34
        return $message;
35
    }
36
37
    /**
38
     * @param Throwable $e
39
     * @param Context $ctx
40
     */
41
    public function exception(Throwable $e, Context $ctx)
42
    {
43
        debug() && dump($e);
44
    }
45
}
46