| 1 | <?php |
||
| 16 | class Kernel |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The application implementation. |
||
| 20 | * |
||
| 21 | * @var \Longman\TelegramBot\Telegram |
||
| 22 | */ |
||
| 23 | protected $app; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new HTTP kernel instance. |
||
| 27 | * |
||
| 28 | * @param \Longman\TelegramBot\Telegram $app |
||
| 29 | * |
||
| 30 | * @return void |
||
|
|
|||
| 31 | */ |
||
| 32 | 1 | public function __construct(Telegram $app) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Handle an incoming HTTP request. |
||
| 39 | * |
||
| 40 | * @param \Longman\TelegramBot\Request2 $request |
||
| 41 | * |
||
| 42 | * @return \Longman\TelegramBot\Response |
||
| 43 | * |
||
| 44 | * @throws \Longman\TelegramBot\Exception\TelegramException |
||
| 45 | */ |
||
| 46 | 1 | public function handle(Request $request) |
|
| 58 | } |
||
| 59 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.