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]>
27 lines
674 B
PHP
27 lines
674 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Reports\Application\DTOs;
|
|
|
|
/**
|
|
* Hours by person: a row per person by name, their total, the rows behind
|
|
* them, and the customers and service units the hours can be narrowed to.
|
|
*/
|
|
final readonly class HoursReport
|
|
{
|
|
/**
|
|
* @param list<PersonHours> $people
|
|
* @param list<HoursLine> $lines
|
|
* @param array<int, string> $customers
|
|
* @param array<int, string> $serviceUnits
|
|
*/
|
|
public function __construct(
|
|
public array $people,
|
|
public PersonHours $total,
|
|
public array $lines,
|
|
public array $customers,
|
|
public array $serviceUnits,
|
|
) {}
|
|
}
|