1 | <?php |
||
18 | class CallbackEvent extends Event |
||
19 | { |
||
20 | /** |
||
21 | * The callback to call. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $callback; |
||
26 | /** |
||
27 | * The parameters to pass to the method. |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $parameters; |
||
32 | /** |
||
33 | * @param string $callback |
||
34 | * @param array $parameters |
||
35 | * @param array $config |
||
36 | */ |
||
37 | 32 | public function __construct($callback, array $parameters = [], $config = []) |
|
48 | /** |
||
49 | * Run the given event. |
||
50 | * |
||
51 | * @param Application $app |
||
52 | * |
||
53 | * @return mixed |
||
54 | */ |
||
55 | 1 | public function run(Application $app) |
|
62 | /** |
||
63 | * Get the summary of the event for display. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | 1 | public function getSummaryForDisplay() |
|
75 | } |
||
76 |