src/Entity/Documentation/HouseGuide.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Documentation;
  3. use App\Entity\Airline;
  4. use App\Entity\Airplane;
  5. use App\Entity\CustomsBroker;
  6. use App\Entity\Dispatch\Dispatch;
  7. use App\Entity\Shipping;
  8. use App\Repository\Documentation\HouseGuideRepository;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. /**
  13.  * @ORM\Entity(repositoryClass=HouseGuideRepository::class)
  14.  * @ORM\Table(name="documentation_house_guide")
  15.  */
  16. class HouseGuide
  17. {
  18.     /**
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Shipping::class, inversedBy="houseGuides")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $shipping;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=MasterGuideNumber::class, inversedBy="houseGuides")
  31.      * @ORM\JoinColumn(nullable=true)
  32.      */
  33.     private $masterGuideNumber;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Airline::class, inversedBy="houseGuides")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $airline;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity=Airplane::class, inversedBy="houseGuides")
  41.      * @ORM\JoinColumn(nullable=false)
  42.      */
  43.     private $airplane;
  44.     /**
  45.      * @ORM\Column(type="date")
  46.      */
  47.     private $departureDate;
  48.     /**
  49.      * @ORM\OneToOne(targetEntity=HouseGuideNumber::class, mappedBy="houseGuide", cascade={"persist", "remove"})
  50.      */
  51.     private $houseGuideNumber;
  52.     /**
  53.      * @ORM\Column(type="text", nullable=true)
  54.      */
  55.     private $departureAirport;
  56.     /**
  57.      * @ORM\Column(type="text", nullable=true)
  58.      */
  59.     private $arrivalAirport;
  60.     /**
  61.      * @ORM\Column(type="array")
  62.      */
  63.     private $routes = [];
  64.     /**
  65.      * @ORM\Column(type="string", length=2)
  66.      */
  67.     private $paymentType;
  68.     /**
  69.      * @ORM\Column(type="float", nullable=true)
  70.      */
  71.     private $weightAmountCollect;
  72.     /**
  73.      * @ORM\Column(type="float", nullable=true)
  74.      */
  75.     private $otherAmountCollect;
  76.     /**
  77.      * @ORM\Column(type="float", nullable=true)
  78.      */
  79.     private $carriageAmount;
  80.     /**
  81.      * @ORM\Column(type="float", nullable=true)
  82.      */
  83.     private $customsAmount;
  84.     /**
  85.      * @ORM\Column(type="float", nullable=true)
  86.      */
  87.     private $weightChargePrepaid;
  88.     /**
  89.      * @ORM\Column(type="float", nullable=true)
  90.      */
  91.     private $weightChargeCollect;
  92.     /**
  93.      * @ORM\Column(type="float", nullable=true)
  94.      */
  95.     private $valuationChargePrepaid;
  96.     /**
  97.      * @ORM\Column(type="float", nullable=true)
  98.      */
  99.     private $valuationChargeCollect;
  100.     /**
  101.      * @ORM\Column(type="float", nullable=true)
  102.      */
  103.     private $taxPrepaid;
  104.     /**
  105.      * @ORM\Column(type="float", nullable=true)
  106.      */
  107.     private $taxCollect;
  108.     /**
  109.      * @ORM\Column(type="float", nullable=true)
  110.      */
  111.     private $totalOtherChargesDueAgentPrepaid;
  112.     /**
  113.      * @ORM\Column(type="float", nullable=true)
  114.      */
  115.     private $totalOtherChargesDueAgentCollect;
  116.     /**
  117.      * @ORM\Column(type="float", nullable=true)
  118.      */
  119.     private $totalOtherChargesDueCarrierPrepaid;
  120.     /**
  121.      * @ORM\Column(type="float", nullable=true)
  122.      */
  123.     private $totalOtherChargesDueCarrierCollect;
  124.     /**
  125.      * @ORM\Column(type="string", length=255, nullable=true)
  126.      */
  127.     private $airportCodeFinalDestination;
  128.     /**
  129.      * @ORM\Column(type="string", length=255, nullable=true)
  130.      */
  131.     private $finalDestinationForWeight;
  132.     /**
  133.      * @ORM\Column(type="string", length=255, nullable=true)
  134.      */
  135.     private $flightNumber;
  136.     /**
  137.      * @ORM\Column(type="text", nullable=true)
  138.      */
  139.     private $handlingInformation;
  140.     /**
  141.      * @ORM\ManyToOne(targetEntity=Dispatch::class, inversedBy="houseGuides")
  142.      */
  143.     private $dispatch;
  144.     /**
  145.      * @ORM\ManyToOne(targetEntity=MasterGuide::class, inversedBy="houseGuides")
  146.      */
  147.     private $masterGuide;
  148.     /**
  149.      * @ORM\OneToMany(targetEntity=HouseGuideBox::class, mappedBy="houseGuide")
  150.      */
  151.     private $houseGuideBoxes;
  152.     /**
  153.      * @ORM\OneToMany(targetEntity=MasterGuideHouseInfo::class, mappedBy="houseGuide")
  154.      */
  155.     private $masterGuideHouseInfos;
  156.     public function __construct()
  157.     {
  158.         $this->houseGuideBoxes = new ArrayCollection();
  159.         $this->masterGuideHouseInfos = new ArrayCollection();
  160.     }
  161.     public function getId(): ?int
  162.     {
  163.         return $this->id;
  164.     }
  165.     public function getShipping(): ?Shipping
  166.     {
  167.         return $this->shipping;
  168.     }
  169.     public function setShipping(?Shipping $shipping): self
  170.     {
  171.         $this->shipping $shipping;
  172.         return $this;
  173.     }
  174.     public function getMasterGuideNumber(): ?MasterGuideNumber
  175.     {
  176.         return $this->masterGuideNumber;
  177.     }
  178.     public function setMasterGuideNumber(?MasterGuideNumber $masterGuideNumber): self
  179.     {
  180.         $this->masterGuideNumber $masterGuideNumber;
  181.         return $this;
  182.     }
  183.     public function getAirline(): ?Airline
  184.     {
  185.         return $this->airline;
  186.     }
  187.     public function setAirline(?Airline $airline): self
  188.     {
  189.         $this->airline $airline;
  190.         return $this;
  191.     }
  192.     public function getAirplane(): ?Airplane
  193.     {
  194.         return $this->airplane;
  195.     }
  196.     public function setAirplane(?Airplane $airplane): self
  197.     {
  198.         $this->airplane $airplane;
  199.         return $this;
  200.     }
  201.     public function getDepartureDate(): ?\DateTimeInterface
  202.     {
  203.         return $this->departureDate;
  204.     }
  205.     public function setDepartureDate(\DateTimeInterface $departureDate): self
  206.     {
  207.         $this->departureDate $departureDate;
  208.         return $this;
  209.     }
  210.     public function getHouseGuideNumber(): ?HouseGuideNumber
  211.     {
  212.         return $this->houseGuideNumber;
  213.     }
  214.     public function setHouseGuideNumber(HouseGuideNumber $houseGuideNumber): self
  215.     {
  216.         // set the owning side of the relation if necessary
  217.         if ($houseGuideNumber->getHouseGuide() !== $this) {
  218.             $houseGuideNumber->setHouseGuide($this);
  219.         }
  220.         $this->houseGuideNumber $houseGuideNumber;
  221.         return $this;
  222.     }
  223.     public function getDepartureAirport(): ?string
  224.     {
  225.         return $this->departureAirport;
  226.     }
  227.     public function setDepartureAirport(?string $departureAirport): self
  228.     {
  229.         $this->departureAirport $departureAirport;
  230.         return $this;
  231.     }
  232.     public function getArrivalAirport(): ?string
  233.     {
  234.         return $this->arrivalAirport;
  235.     }
  236.     public function setArrivalAirport(?string $arrivalAirport): self
  237.     {
  238.         $this->arrivalAirport $arrivalAirport;
  239.         return $this;
  240.     }
  241.     public function getRoutes(): ?array
  242.     {
  243.         return $this->routes;
  244.     }
  245.     public function setRoutes(array $routes): self
  246.     {
  247.         $this->routes $routes;
  248.         return $this;
  249.     }
  250.     public function getPaymentType(): ?string
  251.     {
  252.         return $this->paymentType;
  253.     }
  254.     public function setPaymentType(string $paymentType): self
  255.     {
  256.         $this->paymentType $paymentType;
  257.         return $this;
  258.     }
  259.     public function getWeightAmountCollect(): ?float
  260.     {
  261.         return $this->weightAmountCollect;
  262.     }
  263.     public function setWeightAmountCollect(?float $weightAmountCollect): self
  264.     {
  265.         $this->weightAmountCollect $weightAmountCollect;
  266.         return $this;
  267.     }
  268.     public function getOtherAmountCollect(): ?float
  269.     {
  270.         return $this->otherAmountCollect;
  271.     }
  272.     public function setOtherAmountCollect(?float $otherAmountCollect): self
  273.     {
  274.         $this->otherAmountCollect $otherAmountCollect;
  275.         return $this;
  276.     }
  277.     public function getCarriageAmount(): ?float
  278.     {
  279.         return $this->carriageAmount;
  280.     }
  281.     public function setCarriageAmount(?float $carriageAmount): self
  282.     {
  283.         $this->carriageAmount $carriageAmount;
  284.         return $this;
  285.     }
  286.     public function getCustomsAmount(): ?float
  287.     {
  288.         return $this->customsAmount;
  289.     }
  290.     public function setCustomsAmount(?float $customsAmount): self
  291.     {
  292.         $this->customsAmount $customsAmount;
  293.         return $this;
  294.     }
  295.     public function getWeightChargePrepaid(): ?float
  296.     {
  297.         return $this->weightChargePrepaid;
  298.     }
  299.     public function setWeightChargePrepaid(?float $weightChargePrepaid): self
  300.     {
  301.         $this->weightChargePrepaid $weightChargePrepaid;
  302.         return $this;
  303.     }
  304.     public function getWeightChargeCollect(): ?float
  305.     {
  306.         return $this->weightChargeCollect;
  307.     }
  308.     public function setWeightChargeCollect(?float $weightChargeCollect): self
  309.     {
  310.         $this->weightChargeCollect $weightChargeCollect;
  311.         return $this;
  312.     }
  313.     public function getValuationChargePrepaid(): ?float
  314.     {
  315.         return $this->valuationChargePrepaid;
  316.     }
  317.     public function setValuationChargePrepaid(?float $valuationChargePrepaid): self
  318.     {
  319.         $this->valuationChargePrepaid $valuationChargePrepaid;
  320.         return $this;
  321.     }
  322.     public function getValuationChargeCollect(): ?float
  323.     {
  324.         return $this->valuationChargeCollect;
  325.     }
  326.     public function setValuationChargeCollect(?float $valuationChargeCollect): self
  327.     {
  328.         $this->valuationChargeCollect $valuationChargeCollect;
  329.         return $this;
  330.     }
  331.     public function getTaxPrepaid(): ?float
  332.     {
  333.         return $this->taxPrepaid;
  334.     }
  335.     public function setTaxPrepaid(?float $taxPrepaid): self
  336.     {
  337.         $this->taxPrepaid $taxPrepaid;
  338.         return $this;
  339.     }
  340.     public function getTaxCollect(): ?float
  341.     {
  342.         return $this->taxCollect;
  343.     }
  344.     public function setTaxCollect(?float $taxCollect): self
  345.     {
  346.         $this->taxCollect $taxCollect;
  347.         return $this;
  348.     }
  349.     public function getTotalOtherChargesDueAgentPrepaid(): ?float
  350.     {
  351.         return $this->totalOtherChargesDueAgentPrepaid;
  352.     }
  353.     public function setTotalOtherChargesDueAgentPrepaid(?float $totalOtherChargesDueAgentPrepaid): self
  354.     {
  355.         $this->totalOtherChargesDueAgentPrepaid $totalOtherChargesDueAgentPrepaid;
  356.         return $this;
  357.     }
  358.     public function getTotalOtherChargesDueAgentCollect(): ?float
  359.     {
  360.         return $this->totalOtherChargesDueAgentCollect;
  361.     }
  362.     public function setTotalOtherChargesDueAgentCollect(?float $totalOtherChargesDueAgentCollect): self
  363.     {
  364.         $this->totalOtherChargesDueAgentCollect $totalOtherChargesDueAgentCollect;
  365.         return $this;
  366.     }
  367.     public function getTotalOtherChargesDueCarrierPrepaid(): ?float
  368.     {
  369.         return $this->totalOtherChargesDueCarrierPrepaid;
  370.     }
  371.     public function setTotalOtherChargesDueCarrierPrepaid(?float $totalOtherChargesDueCarrierPrepaid): self
  372.     {
  373.         $this->totalOtherChargesDueCarrierPrepaid $totalOtherChargesDueCarrierPrepaid;
  374.         return $this;
  375.     }
  376.     public function getTotalOtherChargesDueCarrierCollect(): ?float
  377.     {
  378.         return $this->totalOtherChargesDueCarrierCollect;
  379.     }
  380.     public function setTotalOtherChargesDueCarrierCollect(?float $totalOtherChargesDueCarrierCollect): self
  381.     {
  382.         $this->totalOtherChargesDueCarrierCollect $totalOtherChargesDueCarrierCollect;
  383.         return $this;
  384.     }
  385.     public function getAirportCodeFinalDestination(): ?string
  386.     {
  387.         return $this->airportCodeFinalDestination;
  388.     }
  389.     public function setAirportCodeFinalDestination(?string $airportCodeFinalDestination): self
  390.     {
  391.         $this->airportCodeFinalDestination $airportCodeFinalDestination;
  392.         return $this;
  393.     }
  394.     public function getFinalDestinationForWeight(): ?string
  395.     {
  396.         return $this->finalDestinationForWeight;
  397.     }
  398.     public function setFinalDestinationForWeight(?string $finalDestinationForWeight): self
  399.     {
  400.         $this->finalDestinationForWeight $finalDestinationForWeight;
  401.         return $this;
  402.     }
  403.     public function getFlightNumber(): ?string
  404.     {
  405.         return $this->flightNumber;
  406.     }
  407.     public function setFlightNumber(?string $flightNumber): self
  408.     {
  409.         $this->flightNumber $flightNumber;
  410.         return $this;
  411.     }
  412.     public function getHandlingInformation(): ?string
  413.     {
  414.         return $this->handlingInformation;
  415.     }
  416.     public function setHandlingInformation(?string $handlingInformation): self
  417.     {
  418.         $this->handlingInformation $handlingInformation;
  419.         return $this;
  420.     }
  421.     public function getDispatch(): ?Dispatch
  422.     {
  423.         return $this->dispatch;
  424.     }
  425.     public function setDispatch(?Dispatch $dispatch): self
  426.     {
  427.         $this->dispatch $dispatch;
  428.         return $this;
  429.     }
  430.     public function getMasterGuide(): ?MasterGuide
  431.     {
  432.         return $this->masterGuide;
  433.     }
  434.     public function setMasterGuide(?MasterGuide $masterGuide): self
  435.     {
  436.         $this->masterGuide $masterGuide;
  437.         return $this;
  438.     }
  439.     /**
  440.      * @return Collection<int, HouseGuideBox>
  441.      */
  442.     public function getHouseGuideBoxes(): Collection
  443.     {
  444.         return $this->houseGuideBoxes;
  445.     }
  446.     public function addHouseGuideBox(HouseGuideBox $houseGuideBox): self
  447.     {
  448.         if (!$this->houseGuideBoxes->contains($houseGuideBox)) {
  449.             $this->houseGuideBoxes[] = $houseGuideBox;
  450.             $houseGuideBox->setHouseGuide($this);
  451.         }
  452.         return $this;
  453.     }
  454.     public function removeHouseGuideBox(HouseGuideBox $houseGuideBox): self
  455.     {
  456.         if ($this->houseGuideBoxes->removeElement($houseGuideBox)) {
  457.             // set the owning side to null (unless already changed)
  458.             if ($houseGuideBox->getHouseGuide() === $this) {
  459.                 $houseGuideBox->setHouseGuide(null);
  460.             }
  461.         }
  462.         return $this;
  463.     }
  464.     /**
  465.      * @return Collection<int, MasterGuideHouseInfo>
  466.      */
  467.     public function getMasterGuideHouseInfos(): Collection
  468.     {
  469.         return $this->masterGuideHouseInfos;
  470.     }
  471.     public function addMasterGuideHouseInfo(MasterGuideHouseInfo $masterGuideHouseInfo): self
  472.     {
  473.         if (!$this->masterGuideHouseInfos->contains($masterGuideHouseInfo)) {
  474.             $this->masterGuideHouseInfos[] = $masterGuideHouseInfo;
  475.             $masterGuideHouseInfo->setHouseGuide($this);
  476.         }
  477.         return $this;
  478.     }
  479.     public function removeMasterGuideHouseInfo(MasterGuideHouseInfo $masterGuideHouseInfo): self
  480.     {
  481.         if ($this->masterGuideHouseInfos->removeElement($masterGuideHouseInfo)) {
  482.             // set the owning side to null (unless already changed)
  483.             if ($masterGuideHouseInfo->getHouseGuide() === $this) {
  484.                 $masterGuideHouseInfo->setHouseGuide(null);
  485.             }
  486.         }
  487.         return $this;
  488.     }
  489. }