24 lines
680 B
PHP
24 lines
680 B
PHP
<?php
|
|
|
|
namespace App\Domains\CostUnit\Actions\CreateCostUnit;
|
|
|
|
use App\Enumerations\CostUnitType;
|
|
use App\ValueObjects\Amount;
|
|
use DateTime;
|
|
|
|
class CreateCostUnitRequest {
|
|
public string $name;
|
|
public string $type;
|
|
public Amount $distanceAllowance;
|
|
public bool $mailOnNew;
|
|
public ?DateTime $billingDeadline;
|
|
|
|
public function __construct(string $name, string $type, Amount $distanceAllowance, bool $mailOnNew, ?DateTime $billingDeadline = null) {
|
|
$this->name = $name;
|
|
$this->type = $type;
|
|
$this->distanceAllowance = $distanceAllowance;
|
|
$this->mailOnNew = $mailOnNew;
|
|
$this->billingDeadline = $billingDeadline;
|
|
}
|
|
}
|