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>
30 lines
703 B
PHP
30 lines
703 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\ApiResource;
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use ApiPlatform\Metadata\Patch;
|
|
use App\State\EmployeeRttPaymentProcessor;
|
|
use App\State\EmployeeRttPaymentProvider;
|
|
|
|
#[ApiResource(
|
|
operations: [
|
|
new Patch(
|
|
uriTemplate: '/employees/{id}/rtt-payments',
|
|
security: "is_granted('ROLE_ADMIN')",
|
|
provider: EmployeeRttPaymentProvider::class,
|
|
processor: EmployeeRttPaymentProcessor::class
|
|
),
|
|
],
|
|
paginationEnabled: false
|
|
)]
|
|
final class EmployeeRttPaymentInput
|
|
{
|
|
public int $month = 0;
|
|
public int $minutes = 0;
|
|
public string $rate = '25';
|
|
public ?int $year = null;
|
|
}
|