27 lines
769 B
PHP
27 lines
769 B
PHP
<?php
|
|
|
|
namespace App\Domains\Invoice\Actions\UpdateInvoice;
|
|
|
|
use App\Enumerations\InvoiceType;
|
|
use App\Models\CostUnit;
|
|
use App\Models\Invoice;
|
|
use App\ValueObjects\Amount;
|
|
|
|
class UpdateInvoiceRequest {
|
|
public ?string $comment;
|
|
public InvoiceType $invoiceType;
|
|
public CostUnit $costUnit;
|
|
public Invoice $invoice;
|
|
public Amount $amount;
|
|
public ?string $purpose;
|
|
|
|
public function __construct(Invoice $invoice, ?string $comment, InvoiceType $invoiceType, CostUnit $costUnit, Amount $amount, ?string $purpose = null) {
|
|
$this->comment = $comment;
|
|
$this->purpose = $purpose;
|
|
$this->invoiceType = $invoiceType;
|
|
$this->costUnit = $costUnit;
|
|
$this->invoice = $invoice;
|
|
$this->amount = $amount;
|
|
}
|
|
}
|