22 lines
545 B
PHP
22 lines
545 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Sales\Application\DTOs;
|
|
|
|
/**
|
|
* A recorded quick sale: its id and total with VAT, the hours booked on
|
|
* the seller or left unbooked (in quarters of an hour), and the address
|
|
* the receipt is being emailed to, if one was given.
|
|
*/
|
|
final readonly class SaleResult
|
|
{
|
|
public function __construct(
|
|
public int $saleId,
|
|
public int $totalCents,
|
|
public int $bookedQuarters,
|
|
public int $unbookedQuarters,
|
|
public ?string $receiptEmail = null,
|
|
) {}
|
|
}
|