StackOverflow   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
1
<?php
2
3
namespace Ptypes\Exceptions;
4
5
use Exception;
6
7
class StackOverflow extends Exception
8
{
9
    public function __construct($message="Stack Overflow!", $code = 2, Exception $previous = null) 
10
	{
11
        parent::__construct($message, $code, $previous);
12
    }
13
14
    public function __toString() 
15
	{
16
        return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
17
    }
18
}