CryptException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Mfonte\Base62x\Exception;
4
5
class CryptException extends \RuntimeException
6
{
7
    public const REASON = 'Crypt Exception';
8
    public const CODE = 0;
9
10
    public function __construct(string $reason)
11
    {
12
        parent::__construct('Exception in encryption algorithm : '.$reason, static::CODE);
13
    }
14
}
15