--- a/classes/bfw/mvc/model/home/Model.php
+++ b/classes/bfw/mvc/model/home/Model.php
@@ -7,6 +7,7 @@
namespace bfw\mvc\model\home;
+use bfw\core\Entity;
use bfw\core\Model as MyModel;
use bfw\entities\TGroup;
use bfw\entities\TUser;
@@ -16,15 +17,24 @@
private $user;
private $group;
+ /**
+ * Model constructor.
+ */
public function __construct() {
$this->user = new TUser();
$this->group = new TGroup();
}
+ /**
+ * @return Entity[]
+ */
public function getUsers() {
return $this->user->findAll();
}
+ /**
+ * @return Entity[]
+ */
public function getGroups() {
return $this->group->findAll();
}