NullAnnotationReader::getAnnotations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 2
crap 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
     * @inheritDoc
26
     *
27
     * @psalm-suppress InvalidReturnType
28
     */
29
    public function getAnnotations(string $name, $holder): Generator
30
    {
31
        yield from [];
32
    }
33
}
34