create bid files
This commit is contained in:
parent
f322a0f80e
commit
d6b3b4b59e
3 changed files with 94 additions and 0 deletions
32
src/Bid/Bid.php
Normal file
32
src/Bid/Bid.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace FreightQuote\Bid;
|
||||
|
||||
class Bid
|
||||
{
|
||||
public function __construct(
|
||||
private ?string $id,
|
||||
private int $freightOrderId,
|
||||
private int $carrierId,
|
||||
) {}
|
||||
|
||||
public function getId(): ?string
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setId(string $id): void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getFreightOrderId(): int
|
||||
{
|
||||
return $this->freightOrderId;
|
||||
}
|
||||
|
||||
public function getCarrierId(): int
|
||||
{
|
||||
return $this->carrierId;
|
||||
}
|
||||
}
|
||||
8
src/Bid/BidRepository.php
Normal file
8
src/Bid/BidRepository.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace FreightQuote\Bid;
|
||||
|
||||
interface BidRepository
|
||||
{
|
||||
public function save(Bid $bid): Bid;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue