From e169fb66ce35d97833756cb7de7669ab485af935 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 4 Feb 2019 22:29:55 +0100 Subject: [PATCH] Use global namespace+minor fixes --- Models/AccountMapper.php | 5 +++++ Models/Group.php | 2 +- Models/GroupMapper.php | 5 +++++ Models/Module.php | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Models/AccountMapper.php b/Models/AccountMapper.php index b487b3c..68f6df8 100644 --- a/Models/AccountMapper.php +++ b/Models/AccountMapper.php @@ -51,6 +51,11 @@ final class AccountMapper extends DataMapperAbstract ]; /** + * Has many relation. + * + * @var array> + * @since 1.0.0 + */ /** * Has many relation. * * @var array> diff --git a/Models/Group.php b/Models/Group.php index d046fcf..63e450e 100644 --- a/Models/Group.php +++ b/Models/Group.php @@ -81,7 +81,7 @@ class Group extends \phpOMS\Account\Group /** * Get created by. * - * @return mixed + * @return int|\phpOMS\Account\Account * * @since 1.0.0 */ diff --git a/Models/GroupMapper.php b/Models/GroupMapper.php index 03eaccd..0d9aa86 100644 --- a/Models/GroupMapper.php +++ b/Models/GroupMapper.php @@ -67,6 +67,11 @@ final class GroupMapper extends DataMapperAbstract protected static $createdAt = 'group_created'; /** + * Has many relation. + * + * @var array> + * @since 1.0.0 + */ /** * Has many relation. * * @var array> diff --git a/Models/Module.php b/Models/Module.php index 6aa1d6e..0ae665b 100644 --- a/Models/Module.php +++ b/Models/Module.php @@ -199,6 +199,9 @@ class Module * * @since 1.0.0 */ + /** + * {@inheritdoc} + */ public function jsonSerialize() { return $this->toArray();