1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace ApiGen\Task; |
4: | |
5: | |
6: | /** |
7: | * @template TContext |
8: | * @template-covariant THandler of TaskHandler<never, mixed> |
9: | */ |
10: | interface TaskHandlerFactory |
11: | { |
12: | /** |
13: | * @param TContext $context |
14: | * @return THandler |
15: | */ |
16: | public function create(mixed $context): TaskHandler; |
17: | } |
18: |