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