| 1 | <?php |
||
| 6 | class Event |
||
| 7 | { |
||
| 8 | const SENDER = 'sender'; |
||
| 9 | const RESULT = 'result'; |
||
| 10 | |||
| 11 | /** @var string */ |
||
| 12 | protected $id; |
||
| 13 | /** @var array */ |
||
| 14 | public $data; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $id The event id. |
||
| 18 | */ |
||
| 19 | 1 | public function __construct($id) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Get the id. |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | 1 | public function getId() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Set the id. |
||
| 37 | * |
||
| 38 | * @param string $value The new value. |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | 1 | public function setId($value) |
|
| 46 | } |