Passed
Pull Request — master (#940)
by butschster
12:12 queued 02:58
created

AttributesConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isAnnotationsReaderEnabled() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Bootloader\Attributes;
6
7
use Spiral\Core\InjectableConfig;
8
9
final class AttributesConfig extends InjectableConfig
10
{
11
    public const CONFIG = 'attributes';
12
13
    protected array $config = [
14
        'annotations' => [
15
            'support' => true,
16
        ],
17
    ];
18
19 356
    public function isAnnotationsReaderEnabled(): bool
20
    {
21 356
        return (bool)$this->config['annotations']['support'];
22
    }
23
}
24