1 | <?php |
||
7 | trait CanVerifyPhone |
||
8 | { |
||
9 | /** |
||
10 | * {@inheritdoc} |
||
11 | */ |
||
12 | public function getPhoneForVerification(): ?string |
||
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function getCountryForVerification(): ?string |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public function hasVerifiedPhone(): bool |
||
29 | { |
||
30 | return ! is_null($this->phone_verified_at); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function sendPhoneVerificationNotification(string $method, bool $force): void |
||
41 | } |
||
42 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.