base commit
This commit is contained in:
24
app/DTOs/EmployeeSummaryDto.php
Normal file
24
app/DTOs/EmployeeSummaryDto.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\DTOs;
|
||||
|
||||
use App\Models\Vacation;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
readonly class EmployeeSummaryDto
|
||||
{
|
||||
/**
|
||||
* @param Collection<int, Vacation> $upcomingLeave
|
||||
*/
|
||||
public function __construct(
|
||||
public int $vacationTaken,
|
||||
public int $vacationRemaining,
|
||||
public int $sickLeaveCount,
|
||||
public int $reportsCount,
|
||||
public float $bonusesTotal,
|
||||
public int $giftsCount,
|
||||
public Collection $upcomingLeave,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user