Type fix+casing

This commit is contained in:
Dennis Eichhorn 2016-02-14 23:09:40 +01:00
parent 6bedad3d57
commit c964ba8433

View File

@ -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;
}
}