1 | <?php |
||
22 | abstract class AbstractGearmanClientTaskEvent extends Event |
||
23 | { |
||
24 | /** |
||
25 | * @var GearmanTask |
||
26 | * |
||
27 | * Gearman task object |
||
28 | */ |
||
29 | protected $gearmanTask; |
||
30 | |||
31 | /** |
||
32 | * @var mixed |
||
33 | * |
||
34 | * Context that can be set in the addTask method |
||
35 | */ |
||
36 | protected $context; |
||
37 | |||
38 | /** |
||
39 | * Construct method |
||
40 | * |
||
41 | * @param GearmanTask $gearmanTask Gearman Task |
||
42 | */ |
||
43 | public function __construct(GearmanTask $gearmanTask) |
||
47 | |||
48 | /** |
||
49 | * Get Gearman Task |
||
50 | * |
||
51 | * @return GearmanTask Gearman Task |
||
52 | */ |
||
53 | public function getGearmanTask() |
||
57 | |||
58 | /** |
||
59 | * @param mixed $context Context that can be set in the addTask method |
||
60 | */ |
||
61 | public function setContext($context) |
||
65 | |||
66 | /** |
||
67 | * @return mixed Context that can be set in the addTask method |
||
68 | */ |
||
69 | public function &getContext() |
||
73 | } |
||
74 |