Passed
Push — master ( beaa4b...da3f2a )
by Shahrad
02:02
created

WebSocketException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 7
c 1
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A printStack() 0 4 1
1
<?php
2
3
namespace EasyHttp\Exceptions;
4
5
/**
6
 * WebSocketException class
7
 *
8
 * @link    https://github.com/shahradelahi/easy-http
9
 * @author  Shahrad Elahi (https://github.com/shahradelahi)
10
 * @license https://github.com/shahradelahi/easy-http/blob/master/LICENSE (MIT License)
11
 */
12
class WebSocketException extends \Exception
13
{
14
15
	public function printStack()
16
	{
17
		echo $this->getFile() . ' ' . $this->getLine() . ' ' . $this->getMessage() . PHP_EOL;
18
		echo $this->getTraceAsString();
19
	}
20
21
}
22