Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié Reviewed-on: #6 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
35 lines
959 B
PHP
35 lines
959 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ApiResource;
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Get;
|
|
use App\State\EmployeeLeaveSummaryProvider;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Get(
|
|
uriTemplate: '/employees/{id}/leave-summary',
|
|
security: "is_granted('ROLE_USER')",
|
|
provider: EmployeeLeaveSummaryProvider::class
|
|
),
|
|
],
|
|
paginationEnabled: false
|
|
)]
|
|
final class EmployeeLeaveSummary
|
|
{
|
|
public int $year = 0;
|
|
public bool $isSupported = false;
|
|
public string $ruleCode = '';
|
|
public float $acquiredDays = 0.0;
|
|
public float $remainingDays = 0.0;
|
|
public float $takenDays = 0.0;
|
|
public float $acquiredSaturdays = 0.0;
|
|
public float $remainingSaturdays = 0.0;
|
|
public float $takenSaturdays = 0.0;
|
|
public float $fractionedDays = 0.0;
|
|
public float $accruingDays = 0.0;
|
|
}
|