Namespaces
ApiGen
Analyzer
Index
Info
Renderer
Scheduler
Task
Interfaces
Task
TaskHandler
TaskHandlerFactory
Overview
Namespace
Interface
Tree
1:
<?php
declare
(strict_types =
1
);
2:
3:
namespace
ApiGen\Task;
4:
5:
6:
/**
7:
* @template-contravariant T of Task
8:
* @template-covariant R
9:
*/
10:
interface
TaskHandler
11:
{
12:
/**
13:
* @param T $task
14:
* @return R
15:
*/
16:
public
function
handle(Task
$task
): mixed;
17:
}
18: