1 | <?php |
||
7 | class Node extends Threaded { |
||
8 | /** |
||
9 | * @var callable |
||
10 | */ |
||
11 | private $callable; |
||
12 | |||
13 | /** |
||
14 | * @var mixed |
||
15 | */ |
||
16 | private $result; |
||
17 | |||
18 | /** |
||
19 | * @param callable $callable |
||
20 | */ |
||
21 | 9 | public function __construct(callable $callable) |
|
25 | |||
26 | /** |
||
27 | * @return mixed |
||
28 | */ |
||
29 | 7 | public function process() |
|
35 | |||
36 | /** |
||
37 | * @return mixed |
||
38 | */ |
||
39 | 6 | public function output() |
|
43 | } |
||
44 |