1 | <?php |
||
19 | trait EventOptionsTrait |
||
20 | { |
||
21 | /** |
||
22 | * This array is used as key value storage for the options. |
||
23 | * |
||
24 | * @var OptionsResolver |
||
25 | */ |
||
26 | protected $options; |
||
27 | |||
28 | /** |
||
29 | * Returns all the options for the event. |
||
30 | * |
||
31 | * @return OptionsResolver |
||
32 | */ |
||
33 | public function getOptions() |
||
37 | |||
38 | /** |
||
39 | * Returns the option with the given name. |
||
40 | * |
||
41 | * @param string $name The name of the option |
||
42 | * @param mixed $default The return value in case the option is not set |
||
43 | * |
||
44 | * @return mixed The value of the option |
||
45 | */ |
||
46 | public function getOption($name, $default = null) |
||
54 | } |
||
55 |