Fix comments

This commit is contained in:
Dennis Eichhorn 2016-06-11 20:31:14 +02:00
parent befbe5dc3e
commit bc8e5c7657

View File

@ -15,6 +15,17 @@
*/
namespace Modules\Admin\Models;
/**
* Account group class.
*
* @category Framework
* @package phpOMS\Account
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class Group extends \phpOMS\Account\Group
{
/**
@ -33,8 +44,29 @@ class Group extends \phpOMS\Account\Group
*/
protected $createdBy = 0;
/**
* Get created at.
*
* @return \DateTime
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function getCreatedAt() : \DateTime
{
return $this->createdAt ?? new \DateTime('NOW');
}
/**
* Get created by.
*
* @return int
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public function getCreatedBy() : int
{
return $this->createdBy;
}
}