| 1 | <?php |
||
| 11 | trait InteractsWithSession |
||
| 12 | { |
||
| 13 | /** @var Kernel */ |
||
| 14 | protected $kernel; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Remember value in context. |
||
| 18 | * |
||
| 19 | * @param string $key |
||
| 20 | * @param $value |
||
| 21 | */ |
||
| 22 | 2 | protected function remember(string $key, $value): void |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get chat. |
||
| 29 | * |
||
| 30 | * @return Chat |
||
| 31 | */ |
||
| 32 | 1 | protected function getChat(): Chat |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get user. |
||
| 39 | * |
||
| 40 | * @return User |
||
| 41 | */ |
||
| 42 | 2 | protected function getUser(): User |
|
| 46 | } |
||
| 47 |