Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait HandleRecipient |
||
10 | { |
||
11 | /** |
||
12 | * Find the recipient from user model if the given parameter is null. |
||
13 | * |
||
14 | * @param \App\Models\Contracts\HasTelegramChatId|null $recipient |
||
15 | * @return \App\Models\Contracts\HasTelegramChatId |
||
16 | * |
||
17 | * @throws \InvalidArgumentException |
||
18 | */ |
||
19 | protected function findRecipientFromUser(?HasTelegramChatId $recipient): HasTelegramChatId |
||
35 |