EnsuranceException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Dgame\Ensurance\Exception;
4
5
use Exception;
6
use Throwable;
7
8
/**
9
 * Class EnsuranceException
10
 * @package Dgame\Ensurance\Exception
11
 */
12
class EnsuranceException extends Exception
13
{
14
    /**
15
     * EnsuranceException constructor.
16
     *
17
     * @param string    $message
18
     * @param Throwable $previous
0 ignored issues
show
Documentation introduced by
Should the type for parameter $previous not be null|Throwable?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
19
     */
20
    public function __construct(string $message, Throwable $previous = null)
21
    {
22
        parent::__construct($message, 0, $previous);
23
    }
24
}