| 1 | <?php |
||
| 7 | abstract class CallbackEvent extends Event |
||
| 8 | { |
||
| 9 | private $senderId; |
||
| 10 | private $recipientId; |
||
| 11 | |||
| 12 | 75 | public function __construct($senderId, $recipientId) |
|
| 13 | { |
||
| 14 | 75 | $this->senderId = $senderId; |
|
| 15 | 75 | $this->recipientId = $recipientId; |
|
| 16 | 75 | } |
|
| 17 | |||
| 18 | /** |
||
| 19 | * Sender Id. Generally the User Id |
||
| 20 | * |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | 9 | public function getSenderId() |
|
| 24 | { |
||
| 25 | 9 | return $this->senderId; |
|
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Recipient Id. Generally the Page Id |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | 9 | public function getRecipientId() |
|
| 34 | { |
||
| 35 | 9 | return $this->recipientId; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | abstract public function getName(); |
||
| 42 | } |
||
| 43 |