* symfony 6.3: removed sensio/framework-extra-bundle * symfony 6.3: update * Symfony 6.3.1 update * chore: composer up * symfony 6.4 update * cs: php-code-fixer update * fix composer.lock * add php-http required dependencies * Fix Stan and CS --------- Co-authored-by: Jérôme Tanghe <jerome.tanghe@les-tilleuls.coop>
33 lines
650 B
PHP
33 lines
650 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Message\Command\User\ServiceRequest;
|
|
|
|
use App\Entity\ServiceRequest;
|
|
use Symfony\Component\Uid\Uuid;
|
|
|
|
/**
|
|
* @see CreateServiceRequestType
|
|
* @see CreateServiceRequestCommandHandler
|
|
*/
|
|
final class CreateServiceRequestCommand
|
|
{
|
|
/**
|
|
* @see ServiceRequest
|
|
*/
|
|
public function __construct(
|
|
// the product id
|
|
public readonly Uuid $productId,
|
|
|
|
// the borrower user id
|
|
public readonly Uuid $recipientId,
|
|
|
|
public readonly \DateTimeImmutable $startAt,
|
|
|
|
public readonly \DateTimeImmutable $endAt,
|
|
|
|
public ?string $message,
|
|
) {
|
|
}
|
|
}
|