All checks were successful
Auto Tag Develop / tag (push) Successful in 5s
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | #322 | Page horaire | ## Description de la PR [#322] Page horaire ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié Reviewed-on: #4 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
40 lines
903 B
PHP
40 lines
903 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ApiResource;
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Post;
|
|
use App\State\WorkHourBulkUpsertProcessor;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Post(
|
|
uriTemplate: '/work-hours/bulk-upsert',
|
|
security: "is_granted('ROLE_USER')",
|
|
output: WorkHourBulkUpsertResult::class,
|
|
processor: WorkHourBulkUpsertProcessor::class
|
|
),
|
|
]
|
|
)]
|
|
final class WorkHourBulkUpsert
|
|
{
|
|
public string $workDate = '';
|
|
|
|
/**
|
|
* @var list<array{
|
|
* employeeId:int,
|
|
* morningFrom?:?string,
|
|
* morningTo?:?string,
|
|
* afternoonFrom?:?string,
|
|
* afternoonTo?:?string,
|
|
* eveningFrom?:?string,
|
|
* eveningTo?:?string,
|
|
* isPresentMorning?:bool,
|
|
* isPresentAfternoon?:bool
|
|
* }>
|
|
*/
|
|
public array $entries = [];
|
|
}
|