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

PropertyNotFoundException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

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