VueException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A __toString() 0 3 1
1
<?php
2
3
4
namespace PHPMV\exceptions;
5
6
7
8
class VueException extends \Exception {
9
	public function __construct($message = '', $code = 0, \Throwable $previous = null) {
10
		parent::__construct($message, $code, $previous);
11
	}
12
13
	public function __toString(): string {
14
		return \get_class($this) . " '{$this->message}' in {$this->file}({$this->line})".\PHP_EOL
15
			. "{$this->getTraceAsString()}";
16
	}
17
18
}