1 | <?php |
||
4 | class CustomOperation implements OperationInterface |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @var callable |
||
9 | */ |
||
10 | private $handler; |
||
11 | /** |
||
12 | * @var int |
||
13 | */ |
||
14 | private $priority; |
||
15 | |||
16 | 4 | public function __construct(callable $handler, $priority) |
|
22 | |||
23 | /** |
||
24 | * @return callable |
||
25 | */ |
||
26 | 4 | public function getHandler() |
|
30 | |||
31 | /** |
||
32 | * @return int |
||
33 | */ |
||
34 | 4 | public function getPriority() |
|
38 | } |
||
39 |