Failed Conditions
Pull Request — develop (#6743)
by Grégoire
62:30
created

UnknownEntityNamespace::fromNamespaceAlias()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM\Configuration;
6
7
use Doctrine\Common\Persistence\ObjectRepository;
8
use Doctrine\ORM\ConfigurationException;
9
10
final class UnknownEntityNamespace extends \Exception implements ConfigurationException
11
{
12
    public static function fromNamespaceAlias(string $entityNamespaceAlias) : self
13
    {
14
        return new self(
15
            "Unknown Entity namespace alias '$entityNamespaceAlias'."
16
        );
17
    }
18
}
19