bristol-su /
control
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | namespace BristolSU\ControlDB\Contracts\Models; |
||
| 4 | |||
| 5 | use BristolSU\ControlDB\AdditionalProperties\ImplementsAdditionalProperties; |
||
| 6 | use DateTime; |
||
| 7 | use Illuminate\Contracts\Support\Arrayable; |
||
| 8 | use Illuminate\Contracts\Support\Jsonable; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Handles attributes about a user |
||
| 12 | */ |
||
|
0 ignored issues
–
show
|
|||
| 13 | interface DataUser extends ImplementsAdditionalProperties, Arrayable, Jsonable |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get the ID of the data user |
||
| 18 | * |
||
| 19 | * @return int |
||
| 20 | */ |
||
| 21 | public function id(): int; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the first name of the data user |
||
| 25 | * |
||
| 26 | * @return string|null |
||
| 27 | */ |
||
| 28 | public function firstName(): ?string; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the last name of the user |
||
| 32 | * |
||
| 33 | * @return string|null |
||
| 34 | */ |
||
| 35 | public function lastName(): ?string; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get the email of the user |
||
| 39 | * @return string|null |
||
|
0 ignored issues
–
show
|
|||
| 40 | */ |
||
| 41 | public function email(): ?string; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the date of birth of the user |
||
| 45 | * |
||
| 46 | * @return DateTime|null |
||
| 47 | */ |
||
| 48 | public function dob(): ?DateTime; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Get the preferred name of the user |
||
| 52 | * |
||
| 53 | * @return string|null |
||
| 54 | */ |
||
| 55 | public function preferredName(): ?string; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Set the first name of the user |
||
| 59 | * |
||
| 60 | * @param string|null $firstName |
||
|
0 ignored issues
–
show
|
|||
| 61 | */ |
||
|
0 ignored issues
–
show
|
|||
| 62 | public function setFirstName(?string $firstName): void; |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Set the last name of the user |
||
| 66 | * |
||
| 67 | * @param string|null $lastName |
||
|
0 ignored issues
–
show
|
|||
| 68 | */ |
||
|
0 ignored issues
–
show
|
|||
| 69 | public function setLastName(?string $lastName): void; |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Set the email of the user |
||
| 73 | * |
||
| 74 | * @param string|null $email |
||
|
0 ignored issues
–
show
|
|||
| 75 | */ |
||
|
0 ignored issues
–
show
|
|||
| 76 | public function setEmail(?string $email): void; |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Set the date of birth of the user |
||
| 80 | * |
||
| 81 | * @param DateTime|null $dob |
||
|
0 ignored issues
–
show
|
|||
| 82 | */ |
||
|
0 ignored issues
–
show
|
|||
| 83 | public function setDob(?DateTime $dob): void; |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Set the preferred name of the user |
||
| 87 | * |
||
| 88 | * @param string|null $name |
||
|
0 ignored issues
–
show
|
|||
| 89 | */ |
||
|
0 ignored issues
–
show
|
|||
| 90 | public function setPreferredName(?string $name): void; |
||
| 91 | |||
| 92 | /** |
||
| 93 | * Get the user using this data user |
||
| 94 | * |
||
| 95 | * @return User|null |
||
| 96 | */ |
||
| 97 | public function user(): ?User; |
||
| 98 | |||
| 99 | } |