ptut-vhost/build/api/module/departement/statsController.php

25 lines
358 B
PHP
Raw Normal View History

2018-03-08 17:41:52 +00:00
<?php
/**
* Created by PhpStorm.
* User: lucas
* Date: 08/03/18
* Time: 17:36
*/
namespace api\module\departement;
use database\core\Repo;
use database\repo\departement;
class statsController
{
public static function get($args){
/** @var departement $repo */
$repo = Repo::getRepo("departement");
return ["data" => $repo->getStats()];
}
}