ConfigNotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configFileNotFound() 0 6 1
1
<?php
2
3
namespace Potievdev\SlimRbac\Exception;
4
5
/**
6
 * This throws when cyclic line detected in roles hierarchy
7
 * Class CyclicException
8
 * @package Potievdev\SlimRbac\Exception
9
 */
10
class ConfigNotFoundException extends BaseException
11
{
12
    public static function configFileNotFound(array $searchedPaths): self
13
    {
14
        $e = new self('Config file not found.');
15
        $e->additionalParams = ['searchedPaths' => $searchedPaths];
16
17
        return $e;
18
    }
19
}