From c964ba843380436e0ab5438c0a0b9db9658a3229 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 14 Feb 2016 23:09:40 +0100 Subject: [PATCH] Type fix+casing --- Account/Account.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Account/Account.php b/Account/Account.php index 6bdcb5c53..ef3431b72 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -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; + } + }