Passed
Pull Request — master (#5)
by
unknown
01:34
created

PropertyNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 8
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSolution() 0 4 1
A getName() 0 3 1
1
<?php
2
3
4
namespace Yiisoft\Yii\Cycle\Config\Exception;
5
6
7
use Yiisoft\FriendlyException\FriendlyExceptionInterface;
8
9
class PropertyNotFoundException extends \Exception implements FriendlyExceptionInterface
10
{
11
12
    public function getName(): string
13
    {
14
        return 'Unsupported property';
15
    }
16
17
    public function getSolution(): ?string
18
    {
19
        return "Perhaps you made a mistake in the name of the config parameter.\n"
20
            . "Verify that the specified configuration parameters are correct.";
21
    }
22
}
23