| 1 | <?php |
||
| 22 | trait CurrentUserTrait |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @return UserElement|null |
||
| 26 | */ |
||
| 27 | protected function findUser() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return UserElement |
||
| 34 | * @throws HttpException |
||
| 35 | */ |
||
| 36 | protected function getUser() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * HTTP forbidden response code |
||
| 47 | * |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | protected function statusCodeUserNotFound(): int |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | protected function messageUserNotFound(): string |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @throws HttpException |
||
| 65 | * @return mixed |
||
| 66 | */ |
||
| 67 | protected function handleUserNotFoundResponse() |
||
| 74 | } |
||
| 75 |