Management's reports (spec 13) get their own module that reads the other modules through ports. The first report sums hours by person in a period, narrowed by service unit or customer, with breakdowns, a chart and CSV. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
30 lines
707 B
PHP
30 lines
707 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Reports\Application\Contracts;
|
|
|
|
use App\Modules\Reports\Application\DTOs\HoursEntry;
|
|
use App\Modules\Reports\Application\DTOs\UnbilledEntry;
|
|
use App\Modules\Reports\Domain\ValueObjects\ReportPeriod;
|
|
|
|
/**
|
|
* Recorded hours, from the TimeTracking module.
|
|
*/
|
|
interface ReportHours
|
|
{
|
|
/**
|
|
* Hours worked in the period by user, job and work type.
|
|
*
|
|
* @return list<HoursEntry>
|
|
*/
|
|
public function between(ReportPeriod $period): array;
|
|
|
|
/**
|
|
* Unbilled hours worked on or before the day (Y-m-d) by job and work type.
|
|
*
|
|
* @return list<UnbilledEntry>
|
|
*/
|
|
public function unbilledUntil(string $day): array;
|
|
}
|