PidBiggerMax::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
declare(strict_types = 1);
3
/**
4
 * Created by PhpStorm.
5
 * User: danchukas
6
 * Date: 2017-06-16 18:00
7
 */
8
9
namespace DanchukAS\DenyMultiplyRun\Exception;
10
11
/**
12
 * Class PidBiggerMax
13
 *
14
 * @package DanchukAS\DenyMultiplyRun
15
 */
16
class PidBiggerMax extends \Exception
17
{
18
    /**
19
     * Construct the exception. Note: The message is NOT binary safe.
20
     *
21
     * @link  http://php.net/manual/en/exception.construct.php
22
     *
23
     * @param string $message [optional] The Exception message to throw.
24
     * @param int $code [optional] The Exception code.
25
     * @param \Throwable $previous [optional] The previous throwable used for the exception chaining.
26
     *
27
     * @since 5.1.0
28
     */
29 1
    public function __construct($message, $code = 17, \Throwable $previous = null)
30
    {
31 1
        $message = "PID is wrong: $message";
32 1
        parent::__construct($message, $code, $previous);
33 1
    }
34
}
35