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