Passed
Push — master ( 08ecf6...777f51 )
by Sergei
04:39 queued 01:42
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Form\YiisoftFormModel\Exception;
6
7
final class PropertyNotSupportNestedValuesException extends ValueNotFoundException
8
{
9 2
    public function __construct(string $property, private mixed $value)
10
    {
11 2
        parent::__construct('Property "' . $property . '" is not a nested attribute.');
12
    }
13
14 2
    public function getValue(): mixed
15
    {
16 2
        return $this->value;
17
    }
18
}
19