Completed
Push — master ( ab7ebf...740609 )
by Grégoire
02:23
created

YamlNotAvailable::new()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 5
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Migrations\Configuration\Configuration\Exception;
6
7
use Doctrine\Migrations\Configuration\Exception\ConfigurationException;
8
use LogicException;
9
10
final class YamlNotAvailable extends LogicException implements ConfigurationException
11
{
12
    public static function new() : self
13
    {
14
        return new self(
15
            'Unable to load yaml configuration files, please run '
16
            . '`composer require symfony/yaml` to load yaml configuration files.'
17
        );
18
    }
19
}
20