HttpExceptionResponsePluginConfiguration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDecoratedLevel() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 *  This file is part of the Micro framework package.
7
 *
8
 *  (c) Stanislau Komar <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Micro\Plugin\Http;
15
16
use Micro\Framework\Kernel\Configuration\PluginConfiguration;
17
use Micro\Plugin\Http\Configuration\HttpExceptionResponsePluginConfigurationInterface;
18
19
/**
20
 * @author Stanislau Komar <[email protected]>
21
 */
22
class HttpExceptionResponsePluginConfiguration extends PluginConfiguration implements HttpExceptionResponsePluginConfigurationInterface
23
{
24
    public const CFG_DECORATED_WEIGHT = 'MICRO_HTTP_EXCEPTION_DECORATION_WEIGHT';
25
26
    public const CFG_DECORATION_WEIGHT_DEFAULT = 100;
27
28 1
    public function getDecoratedLevel(): int
29
    {
30 1
        return (int) $this->configuration->get(self::CFG_DECORATED_WEIGHT, self::CFG_DECORATION_WEIGHT_DEFAULT, false);
31
    }
32
}
33