mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 07:08:40 +00:00
Type fix+casing
This commit is contained in:
parent
6bedad3d57
commit
c964ba8433
|
|
@ -155,6 +155,7 @@ class Account
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->createdAt = new \DateTime('now');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -367,7 +368,7 @@ class Account
|
|||
throw new \InvalidArgumentException();
|
||||
}
|
||||
|
||||
$this->email = $email;
|
||||
$this->email = mb_strtolower($email);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -421,4 +422,8 @@ class Account
|
|||
$this->lastActive = new \DateTime('NOW');
|
||||
}
|
||||
|
||||
public function setCreatedAt(\DateTime $created) {
|
||||
$this->createdAt = $created;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user