Test Failed
Push — master ( 728572...c0d895 )
by Anatoly
05:42 queued 03:03
created

ResourceNotFoundException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
nc 1
nop 1
dl 0
loc 3
c 1
b 0
f 0
cc 1
rs 10
1
<?php declare(strict_types=1);
2
3
namespace App\Exception;
4
5
/**
6
 * ResourceNotFoundException
7
 */
8
final class ResourceNotFoundException extends AbstractException
9
{
10
11
    /**
12
     * Constructor of the class
13
     *
14
     * @param null|string $message
15
     */
16
    public function __construct(string $message = null)
17
    {
18
        parent::__construct($message ?? 'The requested resource was not found');
19
    }
20
}
21