| 1 | <?php |
||
| 6 | trait AdminCanResetPassword |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Get the e-mail address where password reset links are sent. |
||
| 10 | * |
||
| 11 | * @return string |
||
| 12 | */ |
||
| 13 | public function getEmailForPasswordReset() |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Send the password reset notification. |
||
| 20 | * |
||
| 21 | * @param string $token |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function sendPasswordResetNotification($token) |
||
| 28 | } |
||
| 29 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: