Passed
Pull Request — master (#97)
by Aleksei
07:15
created

CompositeSchemaConveyor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getMetadataReader() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Cycle\Schema\Conveyor;
6
7
use Spiral\Attributes\AnnotationReader;
8
use Spiral\Attributes\AttributeReader;
9
use Spiral\Attributes\Composite\SelectiveReader;
10
use Spiral\Attributes\ReaderInterface;
11
12
final class CompositeSchemaConveyor extends MetadataSchemaConveyor
13
{
14 16
    protected function getMetadataReader(): ?ReaderInterface
15
    {
16 16
        return new SelectiveReader([
17 16
            new AttributeReader(),
18 16
            new AnnotationReader(),
19
        ]);
20
    }
21
}
22