add isClosed, notes, cost, fileAttachments to bid

This commit is contained in:
Yisroel Baum 2025-11-22 21:13:55 +02:00
parent d68c3bc66c
commit 04c498afb6
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
7 changed files with 60 additions and 4 deletions

View file

@ -9,6 +9,10 @@ class Bid
private int $freightOrderId,
private int $carrierId,
private bool $wasOpened,
private bool $isClosed,
private ?int $cost,
private ?string $notes,
private ?array $fileAttachments,
) {}
public function getId(): ?string
@ -49,4 +53,24 @@ class Bid
{
$this->wasOpened = $wasOpened;
}
public function getCost(): ?int
{
return $this->cost;
}
public function getNotes(): ?string
{
return $this->notes;
}
public function getFileAttachments(): ?array
{
return $this->fileAttachments;
}
public function isClosed(): bool
{
return $this->isClosed;
}
}

View file

@ -71,6 +71,10 @@ class CreateFreightOrder
freightOrderId: $freightOrderId,
carrierId: $carrierId,
wasOpened: false,
isClosed: false,
cost: null,
notes: null,
fileAttachments: null,
)
);
}