Completed
Push — master ( 3b7ffc...93bca7 )
by Łukasz
15:02
created

GlobalScopeConfigResolver   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A hasParameter() 0 4 1
A getParameter() 0 4 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ConfigResolver;
10
11
/**
12
 * @internal
13
 */
14
class GlobalScopeConfigResolver extends ContainerConfigResolver
15
{
16
    private const SCOPE_NAME = 'global';
17
18
    public function __construct(string $defaultNamespace)
19
    {
20
        parent::__construct(self::SCOPE_NAME, $defaultNamespace);
21
    }
22
23
    public function hasParameter(string $paramName, ?string $namespace = null, ?string $scope = null): bool
24
    {
25
        return parent::hasParameter($paramName, $namespace, self::SCOPE_NAME);
26
    }
27
28
    public function getParameter(string $paramName, ?string $namespace = null, ?string $scope = null)
29
    {
30
        return parent::getParameter($paramName, $namespace, self::SCOPE_NAME);
31
    }
32
}
33