Test Failed
Pull Request — master (#870)
by Aleksei
08:56
created

NamedScopeDuplicationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Core\Exception\Scope;
6
7
/**
8
 * @method string getScope()
9
 */
10
final class NamedScopeDuplicationException extends ScopeException
11
{
12
    public function __construct(
13
        string $scope,
14
    ) {
15
        parent::__construct(
16
            $scope,
17
            "Error on a scope allocation with the name `{$scope}`. A scope with the same name already exists.",
18
        );
19
    }
20
}
21