| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait CanMagicallyLogin |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get the e-mail address where magic links are sent. |
||
| 11 | * |
||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | public function getEmailForMagicLink() |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Send the magic link notification. |
||
| 21 | * |
||
| 22 | * @param string $link |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function sendMagicLinkNotification(string $link) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Determine if the user was authenticated via a magic link. |
||
| 32 | * |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function viaMagicLink() |
||
| 40 |