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

AttributesConfig::isAnnotationsReaderEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 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