NullUserException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * @file     NullUserException.php
4
 * This file is a class that should be used to communicate a null user
5
 * error to a user.
6
 * @package  Lib\EvangelistStatus
7
 * @author   andrew <[email protected]>
8
 * @license  MIT => https://opensource.org/licenses/MIT
9
 */
10
11
namespace Lib\Exceptions;
12
13
use Exception;
14
15
/**
16
 * @category Class
17
 * @package  Lib\EvangelistStatus
18
 */
19
class NullUserException extends Exception
20
{
21
    protected $message;
22
23
    /**
24
     * @param string $message
25
     */
26
    public function __construct($message)
27
    {
28
        $this->message = $message;
29
30
        // make sure everything is properly assigned
31
        parent::__construct($message);
32
    }
33
}
34