NullAnnotationReader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAnnotations() 0 3 1
1
<?php
2
3
/**
4
 * It's free open-source software released under the MIT License.
5
 *
6
 * @author Anatoly Nekhay <[email protected]>
7
 * @copyright Copyright (c) 2021, Anatoly Nekhay
8
 * @license https://github.com/sunrise-php/hydrator/blob/master/LICENSE
9
 * @link https://github.com/sunrise-php/hydrator
10
 */
11
12
declare(strict_types=1);
13
14
namespace Sunrise\Hydrator\AnnotationReader;
15
16
use Generator;
17
use Sunrise\Hydrator\AnnotationReaderInterface;
18
19
/**
20
 * @since 3.2.0
21
 */
22
final class NullAnnotationReader implements AnnotationReaderInterface
23
{
24
    /**
25
     * @inheritDoc
26
     *
27
     * @psalm-suppress InvalidReturnType
28
     */
29
    public function getAnnotations(string $name, $holder): Generator
30
    {
31
        yield from [];
32
    }
33
}
34