Passed
Push — main ( 6c9276...76dcd0 )
by Anatoly
06:53 queued 02:07
created

NullAnnotationReader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

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
    /**
26
     * @inheritDoc
27
     *
28
     * @psalm-suppress InvalidReturnType
29
     */
30
    public function getAnnotations(string $name, $holder): Generator
31
    {
32
        yield from [];
33
    }
34
}
35