mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 06:28:40 +00:00
General fixes
This commit is contained in:
parent
3d7ee2e690
commit
477cec1c26
|
|
@ -105,7 +105,7 @@ class Account
|
||||||
* @var \DateTime
|
* @var \DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $created = null;
|
protected $createdAt = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Permissions.
|
* Permissions.
|
||||||
|
|
@ -290,7 +290,7 @@ class Account
|
||||||
*/
|
*/
|
||||||
public function getLastActive() : \DateTime
|
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
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function getCreated() : \DateTime
|
public function getCreatedAt() : \DateTime
|
||||||
{
|
{
|
||||||
return $this->created ?? new \DateTime('NOW');
|
return $this->createdAt ?? new \DateTime('NOW');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user