| 1 |
<?php declare(strict_types=1); |
| 2 |
|
| 3 |
/** |
| 4 |
* @license Apache 2.0 |
| 5 |
*/ |
| 6 |
|
| 7 |
namespace OpenApi\Analysers; |
| 8 |
|
| 9 |
use OpenApi\Annotations as OA; |
| 10 |
use OpenApi\Context; |
| 11 |
use OpenApi\GeneratorAwareInterface; |
| 12 |
|
| 13 |
interface AnnotationFactoryInterface extends GeneratorAwareInterface |
| 14 |
{ |
| 15 |
/** |
| 16 |
* Checks if this factory is supported by the current runtime. |
| 17 |
*/ |
| 18 |
public function isSupported(): bool; |
| 19 |
|
| 20 |
/** |
| 21 |
* @return list<OA\AbstractAnnotation> top level annotations |
| 22 |
*/ |
| 23 |
public function build(\Reflector $reflector, Context $context): array; |
| 24 |
} |