ValidationException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 3
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Ballen\Plexity\Exceptions;
4
5
/**
6
 * Plexity
7
 *
8
 * Plexity (Password Complexity) is a password complexity library that
9
 * enables you to set "rules" for a password (or any other kind of string) that
10
 * you can then check against in your application.
11
 *
12
 * @author Bobby Allen <[email protected]>
13
 * @license http://opensource.org/licenses/MIT
14
 * @link https://github.com/allebb/plexity
15
 * @link https://bobbyallen.me
16
 *
17
 */
18
class ValidationException extends \Exception
19
{
20
21
    /**
22
     * ValidationException constructor.
23
     * @param string $message
24
     * @param int $code
25
     * @param \Exception|null $previous
26
     */
27 16
    public function __construct($message, $code = 0, \Exception $previous = null)
28
    {
29 16
        parent::__construct($message, $code, $previous);
30
    }
31
}
32