Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __construct(string $organizationId, string $email, ?string $firstname = null, ?string $lastname = null) |
||
19 | { |
||
20 | $this->organizationId = $organizationId; |
||
21 | $this->email = $email; |
||
22 | $this->firstname = $firstname; |
||
23 | $this->lastname = $lastname; |
||
24 | $this->token = base64_encode($organizationId.'|*|'.$email.'|*|'.$firstname.'|*|'.$lastname); |
||
25 | $this->hash = app(HashGen::class)->hash($this->token); |
||
26 | } |
||
43 |