<?php
/**
* Copyright(C) 2015 Markus Bröker<broeker.markus@googlemail.com>
*
*/
namespace bfw\mvc\model\dokumentation;
use bfw\core\Entity;
use bfw\entities\TGroup;
use bfw\entities\TUser;
class Model extends \bfw\core\Model {
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();
}
}