new user-year reporting and data-type chooser (#3155)
This commit is contained in:
30
src/Model/DateStatisticInterface.php
Normal file
30
src/Model/DateStatisticInterface.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
use App\Model\Statistic\StatisticDate;
|
||||
use DateTimeInterface;
|
||||
|
||||
interface DateStatisticInterface
|
||||
{
|
||||
/**
|
||||
* For unified frontend access
|
||||
*
|
||||
* @return StatisticDate[]
|
||||
*/
|
||||
public function getData(): array;
|
||||
|
||||
public function getByDateTime(DateTimeInterface $date): ?StatisticDate;
|
||||
|
||||
/**
|
||||
* @return DateTimeInterface[]
|
||||
*/
|
||||
public function getDateTimes(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user