1 | <?php |
||
23 | trait User |
||
24 | { |
||
25 | use Authenticatable; |
||
26 | use TimestampableEntity; |
||
27 | use UUIDEntity; |
||
28 | |||
29 | //<editor-fold desc="Fields"> |
||
30 | |||
31 | /** |
||
32 | * @ORM\Column(type="string") |
||
33 | * @var string |
||
34 | */ |
||
35 | private $email; |
||
36 | |||
37 | /** |
||
38 | * @ORM\Column(type="integer") |
||
39 | * @var int |
||
40 | */ |
||
41 | private $jwtVersion; |
||
42 | |||
43 | /** |
||
44 | * @ORM\Column(type="integer") |
||
45 | * @var int |
||
46 | */ |
||
47 | private $confirmedAGBVersion; |
||
48 | //</editor-fold desc="Fields"> |
||
49 | |||
50 | //<editor-fold desc="Constructor"> |
||
51 | //</editor-fold desc="Constructor"> |
||
52 | |||
53 | //<editor-fold desc="Public Methods"> |
||
54 | /** |
||
55 | * @return int |
||
56 | */ |
||
57 | public function getConfirmedAGBVersion(): int |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getEmail(): string |
||
69 | |||
70 | /** |
||
71 | * Return a key value array, containing any custom claims to be added to the JWT. |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function getJWTCustomClaims(): array |
||
81 | |||
82 | /** |
||
83 | * Get the identifier that will be stored in the subject claim of the JWT. |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getJWTIdentifier(): string |
||
91 | |||
92 | /** |
||
93 | * @return int |
||
94 | */ |
||
95 | public function getJwtVersion(): int |
||
99 | |||
100 | /** |
||
101 | * @param mixed $confirmedAGBVersion |
||
102 | */ |
||
103 | public function setConfirmedAGBVersion($confirmedAGBVersion) |
||
107 | |||
108 | /** |
||
109 | * @param mixed $email |
||
110 | */ |
||
111 | public function setEmail($email) |
||
115 | |||
116 | /** |
||
117 | * @param mixed $jwtVersion |
||
118 | */ |
||
119 | public function setJwtVersion($jwtVersion) |
||
123 | //</editor-fold desc="Public Methods"> |
||
124 | |||
125 | //<editor-fold desc="Protected Final Methods"> |
||
126 | /** |
||
127 | * User init |
||
128 | */ |
||
129 | protected final function init() |
||
134 | //</editor-fold desc="Protected Final Methods"> |
||
135 | } |