ExceptionReview::inbound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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