1 | <?php |
||
14 | class Event extends Subject implements EventInterface, \ArrayAccess, MetadataInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $name; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $invokeArgs = array(); |
||
25 | |||
26 | /** |
||
27 | * @var \ArrayAccess |
||
28 | */ |
||
29 | private $metadata; |
||
30 | |||
31 | /** |
||
32 | * @param string $name |
||
33 | */ |
||
34 | 19 | public function __construct($name) |
|
40 | |||
41 | /** |
||
42 | * @see MetaborStd\Event.EventInterface::getInvokeArgs() |
||
43 | */ |
||
44 | 2 | public function getInvokeArgs() |
|
48 | |||
49 | /** |
||
50 | * @see \MetaborStd\CallbackInterface::__invoke() |
||
51 | */ |
||
52 | 7 | public function __invoke() |
|
58 | |||
59 | /** |
||
60 | * @see \MetaborStd\NamedInterface::getName() |
||
61 | */ |
||
62 | 14 | public function getName() |
|
66 | |||
67 | /** |
||
68 | * @see \ArrayAccess::offsetExists() |
||
69 | */ |
||
70 | 2 | public function offsetExists($offset) |
|
74 | |||
75 | /** |
||
76 | * @see \ArrayAccess::offsetGet() |
||
77 | */ |
||
78 | 2 | public function offsetGet($offset) |
|
82 | |||
83 | /** |
||
84 | * @see \ArrayAccess::offsetSet() |
||
85 | */ |
||
86 | 4 | public function offsetSet($offset, $value) |
|
90 | |||
91 | /** |
||
92 | * @see \ArrayAccess::offsetUnset() |
||
93 | */ |
||
94 | 1 | public function offsetUnset($offset) |
|
98 | |||
99 | /** |
||
100 | * @see \MetaborStd\MetadataInterface::getMetadata() |
||
101 | */ |
||
102 | 4 | public function getMetadata() |
|
108 | } |
||
109 |