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

NamedScopeDuplicationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
c 0
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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