Completed
Push — master ( 5eaa6c...e7a27d )
by Leo
01:29
created

Events::error()   A

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 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace leocata\m1Bot;
4
5
use leocata\m1Bot\Interfaces\EventInterface;
6
7
class Events implements EventInterface
8
{
9
10
    public function message($msg)
11
    {
12
        return $msg;
13
    }
14
15
    public function close($code, $reason)
16
    {
17
        echo "Connection closed ({$code} - {$reason})\n";
18
    }
19
20
    public function error($exception)
21
    {
22
        return $exception;
23
    }
24
}
25