Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class WebSocketError extends RuntimeException { |
||
17 | |||
18 | /** |
||
19 | * @var mixed |
||
20 | */ |
||
21 | protected $extra; |
||
22 | |||
23 | /** |
||
24 | * @var Frame|null |
||
25 | */ |
||
26 | protected $frame; |
||
27 | |||
28 | public function __construct (int $code, string $message = '', Frame $frame = null, Throwable $previous = null) { |
||
29 | parent::__construct($message, $code, $previous); |
||
30 | $this->frame = $frame; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getExtra () { |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return Frame|null |
||
42 | */ |
||
43 | public function getFrame () { |
||
44 | return $this->frame; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param mixed $extra |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setExtra ($extra) { |
||
54 | } |
||
55 | |||
56 | } |