| 1 | <?php |
||
| 9 | class UpdateWasReceived extends AbstractEvent |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Update |
||
| 13 | */ |
||
| 14 | private $update; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Api |
||
| 18 | */ |
||
| 19 | private $telegram; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * UpdateWasReceived constructor. |
||
| 23 | * |
||
| 24 | * @param Update $update |
||
| 25 | * @param Api $telegram |
||
| 26 | */ |
||
| 27 | 6 | public function __construct(Update $update, Api $telegram) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return Update |
||
| 35 | */ |
||
| 36 | public function getUpdate() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return Api |
||
| 43 | */ |
||
| 44 | public function getTelegram() |
||
| 48 | } |
||
| 49 |