Issues (54)

src/AnnotationReaderInterface.php (1 issue)

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;
15
16
use Generator;
17
18
/**
19
 * @since 3.1.0
20
 */
21
interface AnnotationReaderInterface
22
{
23
    /**
24
     * Gets annotations by the given name from the given holder
25
     *
26
     * @param class-string<T> $name
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<T> at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<T>.
Loading history...
27
     * @param mixed $holder
28
     *
29
     * @return Generator<mixed, T>
30
     *
31
     * @template T of object
32
     */
33
    public function getAnnotations(string $name, $holder): Generator;
34
}
35