LiveEngageException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
namespace LivePersonInc\LiveEngageLaravel\Exceptions;
4
5
use Exception;
6
7
/**
8
 * @codeCoverageIgnore
9
 */
10
class LiveEngageException extends Exception
11
{
12
	public function __construct($message, $code = 0, Exception $previous = null)
13
	{
14
		parent::__construct($message, $code, $previous);
15
	}
16
17
	// custom string representation of object
18
	public function __toString()
19
	{
20
		return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
21
	}
22
}
23