1 | <?php |
||
7 | class RuleHandler |
||
8 | { |
||
9 | /** |
||
10 | * @var callable |
||
11 | */ |
||
12 | protected $callback; |
||
13 | |||
14 | /** |
||
15 | * @param callable $callback |
||
16 | */ |
||
17 | public function __construct(callable $callback) |
||
21 | |||
22 | /** |
||
23 | * |
||
24 | */ |
||
25 | public function __destruct() |
||
29 | |||
30 | /** |
||
31 | * @param string $alias |
||
32 | * @param ProtocolInterface $protocol |
||
33 | * @param int $flags |
||
34 | * @param callable|null $success |
||
35 | * @param callable|null $failure |
||
36 | * @param callable|null $cancel |
||
37 | * @param float $timeout |
||
38 | */ |
||
39 | public function __invoke($alias, ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0) |
||
53 | } |
||
54 |