Test Failed
Pull Request — main (#28)
by Anatoly
04:37
created

NullAnnotationReader::getAnnotations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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