sunrise-php /
hydrator
| 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
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 |