1 | <?php |
||
9 | class CallbackTask implements Task |
||
10 | { |
||
11 | /** |
||
12 | * @var Closure |
||
13 | */ |
||
14 | protected $closure; |
||
15 | |||
16 | /** |
||
17 | * @param Closure $closure |
||
18 | */ |
||
19 | public function __construct(Closure $closure) |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function serialize() |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | * |
||
39 | * @param string $serialized |
||
40 | */ |
||
41 | public function unserialize($serialized) |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getData() |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getHandler() |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | * |
||
74 | * @return bool |
||
75 | */ |
||
76 | public function ignoresRules() |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | * |
||
84 | * @return bool |
||
85 | */ |
||
86 | public function stopsSiblings() |
||
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | * |
||
94 | * @return bool |
||
95 | */ |
||
96 | public function canRunTask() |
||
100 | |||
101 | } |
||
102 |