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

PropertyNotFoundException::getSolution()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
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