1: <?php
2: /**
3: * ManiaLive - TrackMania dedicated server manager in PHP
4: *
5: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
6: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
7: * @version $Revision: 280 $:
8: * @author $Author: martin.gwendal $:
9: * @date $Date: 2011-11-07 19:21:52 +0100 (lun., 07 nov. 2011) $:
10: */
11:
12: namespace ManiaLive\Event;
13:
14: abstract class Event
15: {
16: const ALL = 0xFFFFFFFF;
17:
18: protected $onWhat;
19:
20: final static function getClass()
21: {
22: return get_called_class();
23: }
24:
25: function __construct($onWhat)
26: {
27: $this->onWhat = $onWhat;
28: }
29:
30: final function getMethod()
31: {
32: return $this->onWhat;
33: }
34:
35: abstract function fireDo($listener);
36: }
37:
38: ?>