1 | <?php |
||
19 | trait CurrentUserTrait |
||
20 | { |
||
21 | /** |
||
22 | * @return int|null |
||
23 | */ |
||
24 | public $statusCodeUserNotFound; |
||
25 | |||
26 | /** |
||
27 | * @return string|null |
||
28 | */ |
||
29 | public $messageUserNotFound; |
||
30 | |||
31 | /** |
||
32 | * @return UserElement|null |
||
33 | */ |
||
34 | protected function findUser() |
||
38 | |||
39 | /** |
||
40 | * @return UserElement |
||
41 | * @throws HttpException |
||
42 | */ |
||
43 | protected function getUser() |
||
51 | |||
52 | /** |
||
53 | * HTTP forbidden response code |
||
54 | * |
||
55 | * @return int |
||
56 | */ |
||
57 | protected function statusCodeUserNotFound(): int |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | protected function messageUserNotFound(): string |
||
69 | |||
70 | /** |
||
71 | * @throws HttpException |
||
72 | * @return mixed |
||
73 | */ |
||
74 | protected function handleUserNotFoundResponse() |
||
81 | } |
||
82 |