<?php
namespace App\Entity\Documentation;
use App\Entity\Airline;
use App\Entity\Airplane;
use App\Entity\CustomsBroker;
use App\Entity\Dispatch\Dispatch;
use App\Entity\Shipping;
use App\Repository\Documentation\HouseGuideRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HouseGuideRepository::class)
* @ORM\Table(name="documentation_house_guide")
*/
class HouseGuide
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Shipping::class, inversedBy="houseGuides")
* @ORM\JoinColumn(nullable=false)
*/
private $shipping;
/**
* @ORM\ManyToOne(targetEntity=MasterGuideNumber::class, inversedBy="houseGuides")
* @ORM\JoinColumn(nullable=true)
*/
private $masterGuideNumber;
/**
* @ORM\ManyToOne(targetEntity=Airline::class, inversedBy="houseGuides")
* @ORM\JoinColumn(nullable=false)
*/
private $airline;
/**
* @ORM\ManyToOne(targetEntity=Airplane::class, inversedBy="houseGuides")
* @ORM\JoinColumn(nullable=false)
*/
private $airplane;
/**
* @ORM\Column(type="date")
*/
private $departureDate;
/**
* @ORM\OneToOne(targetEntity=HouseGuideNumber::class, mappedBy="houseGuide", cascade={"persist", "remove"})
*/
private $houseGuideNumber;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $departureAirport;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $arrivalAirport;
/**
* @ORM\Column(type="array")
*/
private $routes = [];
/**
* @ORM\Column(type="string", length=2)
*/
private $paymentType;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $weightAmountCollect;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $otherAmountCollect;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $carriageAmount;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $customsAmount;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $weightChargePrepaid;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $weightChargeCollect;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $valuationChargePrepaid;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $valuationChargeCollect;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $taxPrepaid;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $taxCollect;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalOtherChargesDueAgentPrepaid;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalOtherChargesDueAgentCollect;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalOtherChargesDueCarrierPrepaid;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalOtherChargesDueCarrierCollect;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $airportCodeFinalDestination;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $finalDestinationForWeight;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $flightNumber;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $handlingInformation;
/**
* @ORM\ManyToOne(targetEntity=Dispatch::class, inversedBy="houseGuides")
*/
private $dispatch;
/**
* @ORM\ManyToOne(targetEntity=MasterGuide::class, inversedBy="houseGuides")
*/
private $masterGuide;
/**
* @ORM\OneToMany(targetEntity=HouseGuideBox::class, mappedBy="houseGuide")
*/
private $houseGuideBoxes;
/**
* @ORM\OneToMany(targetEntity=MasterGuideHouseInfo::class, mappedBy="houseGuide")
*/
private $masterGuideHouseInfos;
public function __construct()
{
$this->houseGuideBoxes = new ArrayCollection();
$this->masterGuideHouseInfos = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getShipping(): ?Shipping
{
return $this->shipping;
}
public function setShipping(?Shipping $shipping): self
{
$this->shipping = $shipping;
return $this;
}
public function getMasterGuideNumber(): ?MasterGuideNumber
{
return $this->masterGuideNumber;
}
public function setMasterGuideNumber(?MasterGuideNumber $masterGuideNumber): self
{
$this->masterGuideNumber = $masterGuideNumber;
return $this;
}
public function getAirline(): ?Airline
{
return $this->airline;
}
public function setAirline(?Airline $airline): self
{
$this->airline = $airline;
return $this;
}
public function getAirplane(): ?Airplane
{
return $this->airplane;
}
public function setAirplane(?Airplane $airplane): self
{
$this->airplane = $airplane;
return $this;
}
public function getDepartureDate(): ?\DateTimeInterface
{
return $this->departureDate;
}
public function setDepartureDate(\DateTimeInterface $departureDate): self
{
$this->departureDate = $departureDate;
return $this;
}
public function getHouseGuideNumber(): ?HouseGuideNumber
{
return $this->houseGuideNumber;
}
public function setHouseGuideNumber(HouseGuideNumber $houseGuideNumber): self
{
// set the owning side of the relation if necessary
if ($houseGuideNumber->getHouseGuide() !== $this) {
$houseGuideNumber->setHouseGuide($this);
}
$this->houseGuideNumber = $houseGuideNumber;
return $this;
}
public function getDepartureAirport(): ?string
{
return $this->departureAirport;
}
public function setDepartureAirport(?string $departureAirport): self
{
$this->departureAirport = $departureAirport;
return $this;
}
public function getArrivalAirport(): ?string
{
return $this->arrivalAirport;
}
public function setArrivalAirport(?string $arrivalAirport): self
{
$this->arrivalAirport = $arrivalAirport;
return $this;
}
public function getRoutes(): ?array
{
return $this->routes;
}
public function setRoutes(array $routes): self
{
$this->routes = $routes;
return $this;
}
public function getPaymentType(): ?string
{
return $this->paymentType;
}
public function setPaymentType(string $paymentType): self
{
$this->paymentType = $paymentType;
return $this;
}
public function getWeightAmountCollect(): ?float
{
return $this->weightAmountCollect;
}
public function setWeightAmountCollect(?float $weightAmountCollect): self
{
$this->weightAmountCollect = $weightAmountCollect;
return $this;
}
public function getOtherAmountCollect(): ?float
{
return $this->otherAmountCollect;
}
public function setOtherAmountCollect(?float $otherAmountCollect): self
{
$this->otherAmountCollect = $otherAmountCollect;
return $this;
}
public function getCarriageAmount(): ?float
{
return $this->carriageAmount;
}
public function setCarriageAmount(?float $carriageAmount): self
{
$this->carriageAmount = $carriageAmount;
return $this;
}
public function getCustomsAmount(): ?float
{
return $this->customsAmount;
}
public function setCustomsAmount(?float $customsAmount): self
{
$this->customsAmount = $customsAmount;
return $this;
}
public function getWeightChargePrepaid(): ?float
{
return $this->weightChargePrepaid;
}
public function setWeightChargePrepaid(?float $weightChargePrepaid): self
{
$this->weightChargePrepaid = $weightChargePrepaid;
return $this;
}
public function getWeightChargeCollect(): ?float
{
return $this->weightChargeCollect;
}
public function setWeightChargeCollect(?float $weightChargeCollect): self
{
$this->weightChargeCollect = $weightChargeCollect;
return $this;
}
public function getValuationChargePrepaid(): ?float
{
return $this->valuationChargePrepaid;
}
public function setValuationChargePrepaid(?float $valuationChargePrepaid): self
{
$this->valuationChargePrepaid = $valuationChargePrepaid;
return $this;
}
public function getValuationChargeCollect(): ?float
{
return $this->valuationChargeCollect;
}
public function setValuationChargeCollect(?float $valuationChargeCollect): self
{
$this->valuationChargeCollect = $valuationChargeCollect;
return $this;
}
public function getTaxPrepaid(): ?float
{
return $this->taxPrepaid;
}
public function setTaxPrepaid(?float $taxPrepaid): self
{
$this->taxPrepaid = $taxPrepaid;
return $this;
}
public function getTaxCollect(): ?float
{
return $this->taxCollect;
}
public function setTaxCollect(?float $taxCollect): self
{
$this->taxCollect = $taxCollect;
return $this;
}
public function getTotalOtherChargesDueAgentPrepaid(): ?float
{
return $this->totalOtherChargesDueAgentPrepaid;
}
public function setTotalOtherChargesDueAgentPrepaid(?float $totalOtherChargesDueAgentPrepaid): self
{
$this->totalOtherChargesDueAgentPrepaid = $totalOtherChargesDueAgentPrepaid;
return $this;
}
public function getTotalOtherChargesDueAgentCollect(): ?float
{
return $this->totalOtherChargesDueAgentCollect;
}
public function setTotalOtherChargesDueAgentCollect(?float $totalOtherChargesDueAgentCollect): self
{
$this->totalOtherChargesDueAgentCollect = $totalOtherChargesDueAgentCollect;
return $this;
}
public function getTotalOtherChargesDueCarrierPrepaid(): ?float
{
return $this->totalOtherChargesDueCarrierPrepaid;
}
public function setTotalOtherChargesDueCarrierPrepaid(?float $totalOtherChargesDueCarrierPrepaid): self
{
$this->totalOtherChargesDueCarrierPrepaid = $totalOtherChargesDueCarrierPrepaid;
return $this;
}
public function getTotalOtherChargesDueCarrierCollect(): ?float
{
return $this->totalOtherChargesDueCarrierCollect;
}
public function setTotalOtherChargesDueCarrierCollect(?float $totalOtherChargesDueCarrierCollect): self
{
$this->totalOtherChargesDueCarrierCollect = $totalOtherChargesDueCarrierCollect;
return $this;
}
public function getAirportCodeFinalDestination(): ?string
{
return $this->airportCodeFinalDestination;
}
public function setAirportCodeFinalDestination(?string $airportCodeFinalDestination): self
{
$this->airportCodeFinalDestination = $airportCodeFinalDestination;
return $this;
}
public function getFinalDestinationForWeight(): ?string
{
return $this->finalDestinationForWeight;
}
public function setFinalDestinationForWeight(?string $finalDestinationForWeight): self
{
$this->finalDestinationForWeight = $finalDestinationForWeight;
return $this;
}
public function getFlightNumber(): ?string
{
return $this->flightNumber;
}
public function setFlightNumber(?string $flightNumber): self
{
$this->flightNumber = $flightNumber;
return $this;
}
public function getHandlingInformation(): ?string
{
return $this->handlingInformation;
}
public function setHandlingInformation(?string $handlingInformation): self
{
$this->handlingInformation = $handlingInformation;
return $this;
}
public function getDispatch(): ?Dispatch
{
return $this->dispatch;
}
public function setDispatch(?Dispatch $dispatch): self
{
$this->dispatch = $dispatch;
return $this;
}
public function getMasterGuide(): ?MasterGuide
{
return $this->masterGuide;
}
public function setMasterGuide(?MasterGuide $masterGuide): self
{
$this->masterGuide = $masterGuide;
return $this;
}
/**
* @return Collection<int, HouseGuideBox>
*/
public function getHouseGuideBoxes(): Collection
{
return $this->houseGuideBoxes;
}
public function addHouseGuideBox(HouseGuideBox $houseGuideBox): self
{
if (!$this->houseGuideBoxes->contains($houseGuideBox)) {
$this->houseGuideBoxes[] = $houseGuideBox;
$houseGuideBox->setHouseGuide($this);
}
return $this;
}
public function removeHouseGuideBox(HouseGuideBox $houseGuideBox): self
{
if ($this->houseGuideBoxes->removeElement($houseGuideBox)) {
// set the owning side to null (unless already changed)
if ($houseGuideBox->getHouseGuide() === $this) {
$houseGuideBox->setHouseGuide(null);
}
}
return $this;
}
/**
* @return Collection<int, MasterGuideHouseInfo>
*/
public function getMasterGuideHouseInfos(): Collection
{
return $this->masterGuideHouseInfos;
}
public function addMasterGuideHouseInfo(MasterGuideHouseInfo $masterGuideHouseInfo): self
{
if (!$this->masterGuideHouseInfos->contains($masterGuideHouseInfo)) {
$this->masterGuideHouseInfos[] = $masterGuideHouseInfo;
$masterGuideHouseInfo->setHouseGuide($this);
}
return $this;
}
public function removeMasterGuideHouseInfo(MasterGuideHouseInfo $masterGuideHouseInfo): self
{
if ($this->masterGuideHouseInfos->removeElement($masterGuideHouseInfo)) {
// set the owning side to null (unless already changed)
if ($masterGuideHouseInfo->getHouseGuide() === $this) {
$masterGuideHouseInfo->setHouseGuide(null);
}
}
return $this;
}
}