Test Failed
Pull Request — master (#940)
by butschster
08:32
created

AttributesConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

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
    public function isAnnotationsReaderEnabled(): bool
20
    {
21
        return (bool)$this->config['annotations']['support'];
22
    }
23
}
24