1 | <?php |
||
12 | class EventArguments |
||
13 | { |
||
14 | /** |
||
15 | * The globally empty event instance. |
||
16 | * Used when no event arguments are passed to the dispatcher. |
||
17 | * |
||
18 | * @var self |
||
19 | */ |
||
20 | private static $emptyInstance; |
||
21 | |||
22 | /** |
||
23 | * Creates an empty arguments instance. |
||
24 | * Ensures only one empty instances exists for all possible event calls without arguments. |
||
25 | * |
||
26 | * @return self |
||
27 | */ |
||
28 | public static function createEmpty() |
||
35 | } |
||
36 |