From 477cec1c2664d2fe5fc1b3a410645126b89cc0bd Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 11 Feb 2016 21:11:27 +0100 Subject: [PATCH] General fixes --- Account/Account.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Account/Account.php b/Account/Account.php index f7a13dca3..6bdcb5c53 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -105,7 +105,7 @@ class Account * @var \DateTime * @since 1.0.0 */ - protected $created = null; + protected $createdAt = null; /** * Permissions. @@ -290,7 +290,7 @@ class Account */ public function getLastActive() : \DateTime { - return $this->lastActive ?? new \DateTime('NOW'); + return $this->lastActive ?? $this->getCreatedAt(); } /** @@ -301,9 +301,9 @@ class Account * @since 1.0.0 * @author Dennis Eichhorn */ - public function getCreated() : \DateTime + public function getCreatedAt() : \DateTime { - return $this->created ?? new \DateTime('NOW'); + return $this->createdAt ?? new \DateTime('NOW'); } /**