mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-23 06:23:59 +00:00
Major incomplete Change
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace App\Classes\Modules\Accounts\DataTransferObjects;
|
||||
|
||||
|
||||
use App\Classes\common;
|
||||
|
||||
class UserInvitationObject
|
||||
{
|
||||
|
||||
@@ -12,16 +14,20 @@ class UserInvitationObject
|
||||
/** @var string */
|
||||
private $inviteeEmail;
|
||||
|
||||
/** @var string|null */
|
||||
private $hash;
|
||||
|
||||
/**
|
||||
* UserInvitationObject constructor.
|
||||
* @param int $role
|
||||
* @param string $inviteeEmail
|
||||
* @param null|string $hash
|
||||
*/
|
||||
public function __construct(int $role, string $inviteeEmail)
|
||||
public function __construct(int $role, string $inviteeEmail, ?string $hash = null)
|
||||
{
|
||||
$this->role = $role;
|
||||
$this->inviteeEmail = $inviteeEmail;
|
||||
$this->hash = $hash ? $hash : Common::generateRandomHash(50);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,5 +46,13 @@ class UserInvitationObject
|
||||
return $this->inviteeEmail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHash(): string
|
||||
{
|
||||
return $this->hash;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user