src/Entity/Shipment.php line 12
<?php
namespace App\Entity;
use App\Repository\ShipmentRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ShipmentRepository::class)]
class Shipment
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $fromName = null;
#[ORM\Column(length: 255)]
private ?string $fromCompany = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?Country $fromCountry = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromAddress = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromAddressTwo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromAddressThree = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromPostalCode = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromCity = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromState = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromEmail = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?PhoneType $fromPhoneType = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromPhoneCode = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromPhone = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromVatTax = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toName = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toCompany = null;
#[ORM\ManyToOne(inversedBy: 'toShipments')]
private ?Country $toCountry = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toAddress = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toAddressTwo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toAddressThree = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toPostalCode = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toCity = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toState = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toEmail = null;
#[ORM\ManyToOne(inversedBy: 'toShipments')]
private ?PhoneType $toPhoneType = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toPhoneCode = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toPhone = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toVatTax = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?ProductType $productType = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?DescribeShipment $describeShipment = null;
#[ORM\Column(nullable: true)]
private ?int $customsInvoice = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $invoiceNo = null;
#[ORM\Column(nullable: true)]
private ?int $schedulePickup = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $pickupDate = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?PickupShipment $pickupShipment = null;
#[ORM\Column(nullable: true)]
private ?float $pickupWeight = null;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: ShipmentReference::class, cascade: ['persist', 'remove', 'detach'])]
private Collection $shipmentReferences;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: ShipmentPackaging::class, cascade: ['persist', 'remove', 'detach'])]
private Collection $shipmentPackagings;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: ShipmentItems::class, cascade: ['persist', 'remove', 'detach'])]
private Collection $shipmentItems;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $shipmentDate = null;
#[ORM\ManyToOne(inversedBy: 'fromShipments')]
private ?AddressBook $fromAddressBook = null;
#[ORM\ManyToOne(inversedBy: 'toShipments')]
private ?AddressBook $toAddressBook = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $mawbNo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $hawbNo = null;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: TrackingUpdate::class)]
private Collection $trackingUpdates;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: SalesInvoiceDetails::class)]
private Collection $salesInvoiceDetails;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?Customer $customer = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?Courier $courier = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $courierHawbno = null;
#[ORM\Column(nullable: true)]
private ?int $shipmentType = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupName = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupCompany = null;
#[ORM\ManyToOne(inversedBy: 'pickupShipments')]
private ?Country $pickupCountry = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupAddress = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupAddressTwo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupAddressThree = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupPostalCode = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupCity = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupState = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupEmail = null;
#[ORM\ManyToOne(inversedBy: 'pickupShipments')]
private ?PhoneType $pickupPhoneType = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupPhoneCode = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupPhone = null;
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $createdAt = null;
#[ORM\ManyToOne(inversedBy: 'createdShipments')]
private ?User $createdBy = null;
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $modifiedAt = null;
#[ORM\ManyToOne(inversedBy: 'modifiedShipments')]
private ?User $modifiedBy = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?UserCompany $userCompany = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?DutyPayer $dutyPayer = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?PaymentOptions $paymentOptions = null;
#[ORM\ManyToOne(inversedBy: 'shipments')]
private ?Services $servicese = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $dutyAccountno = null;
#[ORM\Column(nullable: true)]
private ?bool $saveFromAb = null;
#[ORM\Column(nullable: true)]
private ?bool $saveToAb = null;
#[ORM\Column(nullable: true)]
private ?int $accepted = null;
#[ORM\Column(nullable: true)]
private ?bool $trackingStatus = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $imagePath = null;
#[ORM\ManyToOne(inversedBy: 'pickupShipments')]
private ?User $pickup = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $bookingNO = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $serviceType = null;
#[ORM\Column(nullable: true)]
private ?float $masterWeight = null;
#[ORM\Column(nullable: true)]
private ?bool $expedite = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $customerName = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $pickupmanName = null;
#[ORM\Column(nullable: true)]
private ?bool $textCustomer = null;
#[ORM\Column(nullable: true)]
private ?bool $textPickup = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromEori = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $fromEroino = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toEori = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $toEorino = null;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: FromPhoneDetails::class, cascade: ['persist', 'remove', 'detach'])]
private Collection $fromPhoneDetails;
#[ORM\OneToMany(mappedBy: 'shipment', targetEntity: ToPhoneDetails::class, cascade: ['persist', 'remove', 'detach'])]
private Collection $toPhoneDetails;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $itemSummary = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $additionalInvoiceInfo = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $instructions = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $remarks = null;
#[ORM\Column(nullable: true)]
private ?int $check_status = null;
#[ORM\Column(nullable: true)]
private ?float $cashAmount = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $moneyReceipt = null;
#[ORM\Column(nullable: true)]
private ?bool $manualHawb = null;
public function __construct()
{
$this->shipmentReferences = new ArrayCollection();
$this->shipmentPackagings = new ArrayCollection();
$this->shipmentItems = new ArrayCollection();
$this->trackingUpdates = new ArrayCollection();
$this->salesInvoiceDetails = new ArrayCollection();
$this->fromPhoneDetails = new ArrayCollection();
$this->toPhoneDetails = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getFromName(): ?string
{
return $this->fromName;
}
public function setFromName(string $fromName): self
{
$this->fromName = $fromName;
return $this;
}
public function getFromCompany(): ?string
{
return $this->fromCompany;
}
public function setFromCompany(string $fromCompany): self
{
$this->fromCompany = $fromCompany;
return $this;
}
public function getFromCountry(): ?Country
{
return $this->fromCountry;
}
public function setFromCountry(?Country $fromCountry): self
{
$this->fromCountry = $fromCountry;
return $this;
}
public function getFromAddress(): ?string
{
return $this->fromAddress;
}
public function setFromAddress(?string $fromAddress): self
{
$this->fromAddress = $fromAddress;
return $this;
}
public function getFromAddressTwo(): ?string
{
return $this->fromAddressTwo;
}
public function setFromAddressTwo(?string $fromAddressTwo): self
{
$this->fromAddressTwo = $fromAddressTwo;
return $this;
}
public function getFromAddressThree(): ?string
{
return $this->fromAddressThree;
}
public function setFromAddressThree(?string $fromAddressThree): self
{
$this->fromAddressThree = $fromAddressThree;
return $this;
}
public function getFromPostalCode(): ?string
{
return $this->fromPostalCode;
}
public function setFromPostalCode(?string $fromPostalCode): self
{
$this->fromPostalCode = $fromPostalCode;
return $this;
}
public function getFromCity(): ?string
{
return $this->fromCity;
}
public function setFromCity(?string $fromCity): self
{
$this->fromCity = $fromCity;
return $this;
}
public function getFromState(): ?string
{
return $this->fromState;
}
public function setFromState(?string $fromState): self
{
$this->fromState = $fromState;
return $this;
}
public function getFromEmail(): ?string
{
return $this->fromEmail;
}
public function setFromEmail(?string $fromEmail): self
{
$this->fromEmail = $fromEmail;
return $this;
}
public function getFromPhoneType(): ?PhoneType
{
return $this->fromPhoneType;
}
public function setFromPhoneType(?PhoneType $fromPhoneType): self
{
$this->fromPhoneType = $fromPhoneType;
return $this;
}
public function getFromPhoneCode(): ?string
{
return $this->fromPhoneCode;
}
public function setFromPhoneCode(?string $fromPhoneCode): self
{
$this->fromPhoneCode = $fromPhoneCode;
return $this;
}
public function getFromPhone(): ?string
{
return $this->fromPhone;
}
public function setFromPhone(?string $fromPhone): self
{
$this->fromPhone = $fromPhone;
return $this;
}
public function getFromVatTax(): ?string
{
return $this->fromVatTax;
}
public function setFromVatTax(?string $fromVatTax): self
{
$this->fromVatTax = $fromVatTax;
return $this;
}
public function getToName(): ?string
{
return $this->toName;
}
public function setToName(?string $toName): self
{
$this->toName = $toName;
return $this;
}
public function getToCompany(): ?string
{
return $this->toCompany;
}
public function setToCompany(?string $toCompany): self
{
$this->toCompany = $toCompany;
return $this;
}
public function getToCountry(): ?Country
{
return $this->toCountry;
}
public function setToCountry(?Country $toCountry): self
{
$this->toCountry = $toCountry;
return $this;
}
public function getToAddress(): ?string
{
return $this->toAddress;
}
public function setToAddress(?string $toAddress): self
{
$this->toAddress = $toAddress;
return $this;
}
public function getToAddressTwo(): ?string
{
return $this->toAddressTwo;
}
public function setToAddressTwo(?string $toAddressTwo): self
{
$this->toAddressTwo = $toAddressTwo;
return $this;
}
public function getToAddressThree(): ?string
{
return $this->toAddressThree;
}
public function setToAddressThree(?string $toAddressThree): self
{
$this->toAddressThree = $toAddressThree;
return $this;
}
public function getToPostalCode(): ?string
{
return $this->toPostalCode;
}
public function setToPostalCode(?string $toPostalCode): self
{
$this->toPostalCode = $toPostalCode;
return $this;
}
public function getToCity(): ?string
{
return $this->toCity;
}
public function setToCity(?string $toCity): self
{
$this->toCity = $toCity;
return $this;
}
public function getToState(): ?string
{
return $this->toState;
}
public function setToState(?string $toState): self
{
$this->toState = $toState;
return $this;
}
public function getToEmail(): ?string
{
return $this->toEmail;
}
public function setToEmail(?string $toEmail): self
{
$this->toEmail = $toEmail;
return $this;
}
public function getToPhoneType(): ?PhoneType
{
return $this->toPhoneType;
}
public function setToPhoneType(?PhoneType $toPhoneType): self
{
$this->toPhoneType = $toPhoneType;
return $this;
}
public function getToPhoneCode(): ?string
{
return $this->toPhoneCode;
}
public function setToPhoneCode(?string $toPhoneCode): self
{
$this->toPhoneCode = $toPhoneCode;
return $this;
}
public function getToPhone(): ?string
{
return $this->toPhone;
}
public function setToPhone(?string $toPhone): self
{
$this->toPhone = $toPhone;
return $this;
}
public function getToVatTax(): ?string
{
return $this->toVatTax;
}
public function setToVatTax(?string $toVatTax): self
{
$this->toVatTax = $toVatTax;
return $this;
}
public function getProductType(): ?ProductType
{
return $this->productType;
}
public function setProductType(?ProductType $productType): self
{
$this->productType = $productType;
return $this;
}
public function getDescribeShipment(): ?DescribeShipment
{
return $this->describeShipment;
}
public function setDescribeShipment(?DescribeShipment $describeShipment): self
{
$this->describeShipment = $describeShipment;
return $this;
}
public function getCustomsInvoice(): ?int
{
return $this->customsInvoice;
}
public function setCustomsInvoice(?int $customsInvoice): self
{
$this->customsInvoice = $customsInvoice;
return $this;
}
public function getInvoiceNo(): ?string
{
return $this->invoiceNo;
}
public function setInvoiceNo(?string $invoiceNo): self
{
$this->invoiceNo = $invoiceNo;
return $this;
}
public function getSchedulePickup(): ?int
{
return $this->schedulePickup;
}
public function setSchedulePickup(?int $schedulePickup): self
{
$this->schedulePickup = $schedulePickup;
return $this;
}
public function getPickupDate(): ?\DateTimeInterface
{
return $this->pickupDate;
}
public function setPickupDate(?\DateTimeInterface $pickupDate): self
{
$this->pickupDate = $pickupDate;
return $this;
}
public function getPickupShipment(): ?PickupShipment
{
return $this->pickupShipment;
}
public function setPickupShipment(?PickupShipment $pickupShipment): self
{
$this->pickupShipment = $pickupShipment;
return $this;
}
public function getPickupWeight(): ?float
{
return $this->pickupWeight;
}
public function setPickupWeight(?float $pickupWeight): self
{
$this->pickupWeight = $pickupWeight;
return $this;
}
/**
* @return Collection<int, ShipmentReference>
*/
public function getShipmentReferences(): Collection
{
return $this->shipmentReferences;
}
public function addShipmentReference(ShipmentReference $shipmentReference): self
{
if (!$this->shipmentReferences->contains($shipmentReference)) {
$this->shipmentReferences->add($shipmentReference);
$shipmentReference->setShipment($this);
}
return $this;
}
public function removeShipmentReference(ShipmentReference $shipmentReference): self
{
if ($this->shipmentReferences->removeElement($shipmentReference)) {
// set the owning side to null (unless already changed)
if ($shipmentReference->getShipment() === $this) {
$shipmentReference->setShipment(null);
}
}
return $this;
}
/**
* @return Collection<int, ShipmentPackaging>
*/
public function getShipmentPackagings(): Collection
{
return $this->shipmentPackagings;
}
public function addShipmentPackaging(ShipmentPackaging $shipmentPackaging): self
{
if (!$this->shipmentPackagings->contains($shipmentPackaging)) {
$this->shipmentPackagings->add($shipmentPackaging);
$shipmentPackaging->setShipment($this);
}
return $this;
}
public function removeShipmentPackaging(ShipmentPackaging $shipmentPackaging): self
{
if ($this->shipmentPackagings->removeElement($shipmentPackaging)) {
// set the owning side to null (unless already changed)
if ($shipmentPackaging->getShipment() === $this) {
$shipmentPackaging->setShipment(null);
}
}
return $this;
}
/**
* @return Collection<int, ShipmentItems>
*/
public function getShipmentItems(): Collection
{
return $this->shipmentItems;
}
public function addShipmentItem(ShipmentItems $shipmentItem): self
{
if (!$this->shipmentItems->contains($shipmentItem)) {
$this->shipmentItems->add($shipmentItem);
$shipmentItem->setShipment($this);
}
return $this;
}
public function removeShipmentItem(ShipmentItems $shipmentItem): self
{
if ($this->shipmentItems->removeElement($shipmentItem)) {
// set the owning side to null (unless already changed)
if ($shipmentItem->getShipment() === $this) {
$shipmentItem->setShipment(null);
}
}
return $this;
}
public function getShipmentDate(): ?\DateTimeInterface
{
return $this->shipmentDate;
}
public function setShipmentDate(?\DateTimeInterface $shipmentDate): self
{
$this->shipmentDate = $shipmentDate;
return $this;
}
public function getFromAddressBook(): ?AddressBook
{
return $this->fromAddressBook;
}
public function setFromAddressBook(?AddressBook $fromAddressBook): self
{
$this->fromAddressBook = $fromAddressBook;
return $this;
}
public function getToAddressBook(): ?AddressBook
{
return $this->toAddressBook;
}
public function setToAddressBook(?AddressBook $toAddressBook): self
{
$this->toAddressBook = $toAddressBook;
return $this;
}
public function getMawbNo(): ?string
{
return $this->mawbNo;
}
public function setMawbNo(?string $mawbNo): self
{
$this->mawbNo = $mawbNo;
return $this;
}
public function getHawbNo(): ?string
{
return $this->hawbNo;
}
public function setHawbNo(?string $hawbNo): self
{
$this->hawbNo = $hawbNo;
return $this;
}
/**
* @return Collection<int, TrackingUpdate>
*/
public function getTrackingUpdates(): Collection
{
return $this->trackingUpdates;
}
public function addTrackingUpdate(TrackingUpdate $trackingUpdate): self
{
if (!$this->trackingUpdates->contains($trackingUpdate)) {
$this->trackingUpdates->add($trackingUpdate);
$trackingUpdate->setShipment($this);
}
return $this;
}
public function removeTrackingUpdate(TrackingUpdate $trackingUpdate): self
{
if ($this->trackingUpdates->removeElement($trackingUpdate)) {
// set the owning side to null (unless already changed)
if ($trackingUpdate->getShipment() === $this) {
$trackingUpdate->setShipment(null);
}
}
return $this;
}
/**
* @return Collection<int, SalesInvoiceDetails>
*/
public function getSalesInvoiceDetails(): Collection
{
return $this->salesInvoiceDetails;
}
public function addSalesInvoiceDetail(SalesInvoiceDetails $salesInvoiceDetail): self
{
if (!$this->salesInvoiceDetails->contains($salesInvoiceDetail)) {
$this->salesInvoiceDetails->add($salesInvoiceDetail);
$salesInvoiceDetail->setShipment($this);
}
return $this;
}
public function removeSalesInvoiceDetail(SalesInvoiceDetails $salesInvoiceDetail): self
{
if ($this->salesInvoiceDetails->removeElement($salesInvoiceDetail)) {
// set the owning side to null (unless already changed)
if ($salesInvoiceDetail->getShipment() === $this) {
$salesInvoiceDetail->setShipment(null);
}
}
return $this;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getShipmentPackagingTotalGrossWeight()
{
$weight = 0;
foreach ($this->shipmentPackagings as $shipmentPackaging) {
$weight += $shipmentPackaging->getQuantity() * $shipmentPackaging->getWeight();
}
return round($weight,2);
}
public function getShipmentPackagingTotalVolumetricWeight()
{
$weight = 0;
foreach ($this->shipmentPackagings as $shipmentPackaging) {
$weight += $shipmentPackaging->getQuantity() * (($shipmentPackaging->getLength() * $shipmentPackaging->getWidth() * $shipmentPackaging->getHeight())/5000);
}
return round($weight,2);
}
public function getShipmentPackagingTotalPieces()
{
$pieces = 0;
foreach ($this->shipmentPackagings as $shipmentPackaging) {
$pieces += $shipmentPackaging->getQuantity();
}
return round($pieces,2);
}
public function getShipmentPackagingTotalFinalWeight()
{
if($this->getShipmentPackagingTotalVolumetricWeight() > $this->getShipmentPackagingTotalGrossWeight())
{
return $this->getShipmentPackagingTotalVolumetricWeight();
}
else
{
return $this->getShipmentPackagingTotalGrossWeight();
}
}
public function getShipmentItemsTotalCustomValue()
{
$value = 0;
foreach ($this->shipmentItems as $shipmentItem) {
$value += $shipmentItem->getQuantity() * $shipmentItem->getValue();
}
return round($value,2);
}
public function getCourier(): ?Courier
{
return $this->courier;
}
public function setCourier(?Courier $courier): self
{
$this->courier = $courier;
return $this;
}
public function getCourierHawbno(): ?string
{
return $this->courierHawbno;
}
public function setCourierHawbno(?string $courierHawbno): self
{
$this->courierHawbno = $courierHawbno;
return $this;
}
public function getShipmentType(): ?int
{
return $this->shipmentType;
}
public function setShipmentType(?int $shipmentType): self
{
$this->shipmentType = $shipmentType;
return $this;
}
public function getPickupName(): ?string
{
return $this->pickupName;
}
public function setPickupName(?string $pickupName): self
{
$this->pickupName = $pickupName;
return $this;
}
public function getPickupCompany(): ?string
{
return $this->pickupCompany;
}
public function setPickupCompany(?string $pickupCompany): self
{
$this->pickupCompany = $pickupCompany;
return $this;
}
public function getPickupCountry(): ?Country
{
return $this->pickupCountry;
}
public function setPickupCountry(?Country $pickupCountry): self
{
$this->pickupCountry = $pickupCountry;
return $this;
}
public function getPickupAddress(): ?string
{
return $this->pickupAddress;
}
public function setPickupAddress(?string $pickupAddress): self
{
$this->pickupAddress = $pickupAddress;
return $this;
}
public function getPickupAddressTwo(): ?string
{
return $this->pickupAddressTwo;
}
public function setPickupAddressTwo(?string $pickupAddressTwo): self
{
$this->pickupAddressTwo = $pickupAddressTwo;
return $this;
}
public function getPickupAddressThree(): ?string
{
return $this->pickupAddressThree;
}
public function setPickupAddressThree(?string $pickupAddressThree): self
{
$this->pickupAddressThree = $pickupAddressThree;
return $this;
}
public function getPickupPostalCode(): ?string
{
return $this->pickupPostalCode;
}
public function setPickupPostalCode(?string $pickupPostalCode): self
{
$this->pickupPostalCode = $pickupPostalCode;
return $this;
}
public function getPickupCity(): ?string
{
return $this->pickupCity;
}
public function setPickupCity(?string $pickupCity): self
{
$this->pickupCity = $pickupCity;
return $this;
}
public function getPickupState(): ?string
{
return $this->pickupState;
}
public function setPickupState(?string $pickupState): self
{
$this->pickupState = $pickupState;
return $this;
}
public function getPickupEmail(): ?string
{
return $this->pickupEmail;
}
public function setPickupEmail(?string $pickupEmail): self
{
$this->pickupEmail = $pickupEmail;
return $this;
}
public function getPickupPhoneType(): ?PhoneType
{
return $this->pickupPhoneType;
}
public function setPickupPhoneType(?PhoneType $pickupPhoneType): self
{
$this->pickupPhoneType = $pickupPhoneType;
return $this;
}
public function getPickupPhoneCode(): ?string
{
return $this->pickupPhoneCode;
}
public function setPickupPhoneCode(?string $pickupPhoneCode): self
{
$this->pickupPhoneCode = $pickupPhoneCode;
return $this;
}
public function getPickupPhone(): ?string
{
return $this->pickupPhone;
}
public function setPickupPhone(?string $pickupPhone): self
{
$this->pickupPhone = $pickupPhone;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->createdBy;
}
public function setCreatedBy(?User $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getModifiedAt(): ?\DateTimeImmutable
{
return $this->modifiedAt;
}
public function setModifiedAt(?\DateTimeImmutable $modifiedAt): self
{
$this->modifiedAt = $modifiedAt;
return $this;
}
public function getModifiedBy(): ?User
{
return $this->modifiedBy;
}
public function setModifiedBy(?User $modifiedBy): self
{
$this->modifiedBy = $modifiedBy;
return $this;
}
public function getUserCompany(): ?UserCompany
{
return $this->userCompany;
}
public function setUserCompany(?UserCompany $userCompany): self
{
$this->userCompany = $userCompany;
return $this;
}
public function getDutyPayer(): ?DutyPayer
{
return $this->dutyPayer;
}
public function setDutyPayer(?DutyPayer $dutyPayer): self
{
$this->dutyPayer = $dutyPayer;
return $this;
}
public function getPaymentOptions(): ?PaymentOptions
{
return $this->paymentOptions;
}
public function setPaymentOptions(?PaymentOptions $paymentOptions): self
{
$this->paymentOptions = $paymentOptions;
return $this;
}
public function getServicese(): ?Services
{
return $this->servicese;
}
public function setServicese(?Services $servicese): self
{
$this->servicese = $servicese;
return $this;
}
public function getDutyAccountno(): ?string
{
return $this->dutyAccountno;
}
public function setDutyAccountno(?string $dutyAccountno): self
{
$this->dutyAccountno = $dutyAccountno;
return $this;
}
public function getSaveFromAb(): ?bool
{
return $this->saveFromAb;
}
public function setSaveFromAb(?bool $saveFromAb): self
{
$this->saveFromAb = $saveFromAb;
return $this;
}
public function getSaveToAb(): ?bool
{
return $this->saveToAb;
}
public function setSaveToAb(?bool $saveToAb): self
{
$this->saveToAb = $saveToAb;
return $this;
}
public function getAccepted(): ?int
{
return $this->accepted;
}
public function setAccepted(?int $accepted): self
{
$this->accepted = $accepted;
return $this;
}
public function isTrackingStatus(): ?bool
{
return $this->trackingStatus;
}
public function setTrackingStatus(?bool $trackingStatus): self
{
$this->trackingStatus = $trackingStatus;
return $this;
}
public function getImagePath(): ?string
{
return $this->imagePath;
}
public function setImagePath(?string $imagePath): self
{
$this->imagePath = $imagePath;
return $this;
}
public function getPickup(): ?User
{
return $this->pickup;
}
public function setPickup(?User $pickup): self
{
$this->pickup = $pickup;
return $this;
}
public function getBookingNO(): ?string
{
return $this->bookingNO;
}
public function setBookingNO(?string $bookingNO): self
{
$this->bookingNO = $bookingNO;
return $this;
}
public function getServiceType(): ?string
{
return $this->serviceType;
}
public function setServiceType(?string $serviceType): self
{
$this->serviceType = $serviceType;
return $this;
}
public function getMasterWeight(): ?float
{
return $this->masterWeight;
}
public function setMasterWeight(?float $masterWeight): self
{
$this->masterWeight = $masterWeight;
return $this;
}
public function isExpedite(): ?bool
{
return $this->expedite;
}
public function setExpedite(?bool $expedite): self
{
$this->expedite = $expedite;
return $this;
}
public function getCustomerName(): ?string
{
return $this->customerName;
}
public function setCustomerName(?string $customerName): self
{
$this->customerName = $customerName;
return $this;
}
public function getPickupmanName(): ?string
{
return $this->pickupmanName;
}
public function setPickupmanName(?string $pickupmanName): self
{
$this->pickupmanName = $pickupmanName;
return $this;
}
public function isTextCustomer(): ?bool
{
return $this->textCustomer;
}
public function setTextCustomer(?bool $textCustomer): self
{
$this->textCustomer = $textCustomer;
return $this;
}
public function isTextPickup(): ?bool
{
return $this->textPickup;
}
public function setTextPickup(?bool $textPickup): self
{
$this->textPickup = $textPickup;
return $this;
}
public function getFromEori(): ?string
{
return $this->fromEori;
}
public function setFromEori(?string $fromEori): self
{
$this->fromEori = $fromEori;
return $this;
}
public function getFromEroino(): ?string
{
return $this->fromEroino;
}
public function setFromEroino(?string $fromEroino): self
{
$this->fromEroino = $fromEroino;
return $this;
}
public function getToEori(): ?string
{
return $this->toEori;
}
public function setToEori(?string $toEori): self
{
$this->toEori = $toEori;
return $this;
}
public function getToEorino(): ?string
{
return $this->toEorino;
}
public function setToEorino(?string $toEorino): self
{
$this->toEorino = $toEorino;
return $this;
}
/**
* @return Collection<int, FromPhoneDetails>
*/
public function getFromPhoneDetails(): Collection
{
return $this->fromPhoneDetails;
}
public function addFromPhoneDetail(FromPhoneDetails $fromPhoneDetail): self
{
if (!$this->fromPhoneDetails->contains($fromPhoneDetail)) {
$this->fromPhoneDetails->add($fromPhoneDetail);
$fromPhoneDetail->setShipment($this);
}
return $this;
}
public function removeFromPhoneDetail(FromPhoneDetails $fromPhoneDetail): self
{
if ($this->fromPhoneDetails->removeElement($fromPhoneDetail)) {
// set the owning side to null (unless already changed)
if ($fromPhoneDetail->getShipment() === $this) {
$fromPhoneDetail->setShipment(null);
}
}
return $this;
}
/**
* @return Collection<int, ToPhoneDetails>
*/
public function getToPhoneDetails(): Collection
{
return $this->toPhoneDetails;
}
public function addToPhoneDetail(ToPhoneDetails $toPhoneDetail): self
{
if (!$this->toPhoneDetails->contains($toPhoneDetail)) {
$this->toPhoneDetails->add($toPhoneDetail);
$toPhoneDetail->setShipment($this);
}
return $this;
}
public function removeToPhoneDetail(ToPhoneDetails $toPhoneDetail): self
{
if ($this->toPhoneDetails->removeElement($toPhoneDetail)) {
// set the owning side to null (unless already changed)
if ($toPhoneDetail->getShipment() === $this) {
$toPhoneDetail->setShipment(null);
}
}
return $this;
}
public function getItemSummary(): ?string
{
return $this->itemSummary;
}
public function setItemSummary(?string $itemSummary): self
{
$this->itemSummary = $itemSummary;
return $this;
}
public function getAdditionalInvoiceInfo(): ?string
{
return $this->additionalInvoiceInfo;
}
public function setAdditionalInvoiceInfo(?string $additionalInvoiceInfo): self
{
$this->additionalInvoiceInfo = $additionalInvoiceInfo;
return $this;
}
public function getInstructions(): ?string
{
return $this->instructions;
}
public function setInstructions(?string $instructions): self
{
$this->instructions = $instructions;
return $this;
}
public function getRemarks(): ?string
{
return $this->remarks;
}
public function setRemarks(?string $remarks): self
{
$this->remarks = $remarks;
return $this;
}
public function getCheckStatus(): ?int
{
return $this->check_status;
}
public function setCheckStatus(?int $check_status): self
{
$this->check_status = $check_status;
return $this;
}
public function getCashAmount(): ?float
{
return $this->cashAmount;
}
public function setCashAmount(?float $cashAmount): self
{
$this->cashAmount = $cashAmount;
return $this;
}
public function getMoneyReceipt(): ?string
{
return $this->moneyReceipt;
}
public function setMoneyReceipt(?string $moneyReceipt): self
{
$this->moneyReceipt = $moneyReceipt;
return $this;
}
public function isManualHawb(): ?bool
{
return $this->manualHawb;
}
public function setManualHawb(?bool $manualHawb): self
{
$this->manualHawb = $manualHawb;
return $this;
}
}