Passed
Pull Request — master (#4)
by
unknown
01:33
created

EmptyEntityPathsException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 7
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getSolution() 0 3 1
1
<?php
2
3
namespace Yiisoft\Yii\Cycle\Exception;
4
5
use Exception;
6
use Yiisoft\FriendlyException\FriendlyExceptionInterface;
7
8
class EmptyEntityPathsException extends Exception implements FriendlyExceptionInterface
9
{
10
    public function getName(): string
11
    {
12
        return 'Bad declaration of Entity paths';
13
    }
14
    public function getSolution(): ?string
15
    {
16
        return 'There must be at least one entry in the path list';
17
    }
18
}
19