FileNotReadable::constructFromPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace UltraLite\ConfigReader\ConfigReaderException;
3
4
use UltraLite\ConfigReader\ConfigReaderException;
5
6
class FileNotReadable extends \InvalidArgumentException implements ConfigReaderException
7
{
8
    public static function constructFromPath(string $path): FileNotReadable
9
    {
10
        $message = "Config file format not readable: '$path'";
11
        return new static($message);
12
    }
13
}
14