Advertisement
Guest User

Untitled

a guest
Aug 18th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. declare(strict_types = 1);
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. /**
  8.  * @property string $email
  9.  */
  10. class User extends Model
  11. {
  12.     public function getEmail(): string
  13.     {
  14.         return $this->email;
  15.     }
  16.  
  17.     public function setEmail(string $email): void
  18.     {
  19.         $this->email = $email;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement