src/Entity/NewStockTransfer.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NewStockTransferRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassNewStockTransferRepository::class)]
  8. class NewStockTransfer extends BaseEntity
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityWarehouse::class, inversedBy'newStockTransfers')]
  15.     private $arrivalWarehouse;
  16.     #[ORM\Column(type'integer')]
  17.     private $containerNumber;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $invoiceNumber;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $konsimento;
  22.     #[ORM\Column(type'decimal'precision19scale4)]
  23.     private $totalNavlun;
  24.     #[ORM\Column(type'text')]
  25.     private $description;
  26.     #[ORM\Column(type'date')]
  27.     private $dateOfOutCustoms;
  28.     #[ORM\Column(type'date')]
  29.     private $dateOfArrivalWarehouse;
  30.     #[ORM\Column(type'boolean')]
  31.     private $isCompleted;
  32.     #[ORM\OneToMany(mappedBy'newStockTransfer'targetEntityContainer::class)]
  33.     private $containers;
  34.     public function __construct()
  35.     {
  36.         $this->containers = new ArrayCollection();
  37.     }
  38.     /**
  39.      * @return mixed
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * @param mixed $id
  47.      */
  48.     public function setId($id): void
  49.     {
  50.         $this->id $id;
  51.     }
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getDateOfArrivalWarehouse()
  56.     {
  57.         return $this->dateOfArrivalWarehouse;
  58.     }
  59.     /**
  60.      * @param mixed $dateOfArrivalWarehouse
  61.      */
  62.     public function setDateOfArrivalWarehouse($dateOfArrivalWarehouse): void
  63.     {
  64.         $this->dateOfArrivalWarehouse $dateOfArrivalWarehouse;
  65.     }
  66.     public function getArrivalWarehouse(): ?Warehouse
  67.     {
  68.         return $this->arrivalWarehouse;
  69.     }
  70.     public function setArrivalWarehouse(?Warehouse $arrivalWarehouse): self
  71.     {
  72.         $this->arrivalWarehouse $arrivalWarehouse;
  73.         return $this;
  74.     }
  75.     public function getContainerNumber(): ?int
  76.     {
  77.         return $this->containerNumber;
  78.     }
  79.     public function setContainerNumber(int $containerNumber): self
  80.     {
  81.         $this->containerNumber $containerNumber;
  82.         return $this;
  83.     }
  84.     public function getInvoiceNumber(): ?string
  85.     {
  86.         return $this->invoiceNumber;
  87.     }
  88.     public function setInvoiceNumber(string $invoiceNumber): self
  89.     {
  90.         $this->invoiceNumber $invoiceNumber;
  91.         return $this;
  92.     }
  93.     public function getKonsimento(): ?string
  94.     {
  95.         return $this->konsimento;
  96.     }
  97.     public function setKonsimento(string $konsimento): self
  98.     {
  99.         $this->konsimento $konsimento;
  100.         return $this;
  101.     }
  102.     public function getTotalNavlun(): ?float
  103.     {
  104.         return $this->totalNavlun;
  105.     }
  106.     public function setTotalNavlun(float $totalNavlun): self
  107.     {
  108.         $this->totalNavlun $totalNavlun;
  109.         return $this;
  110.     }
  111.     public function getDescription(): ?string
  112.     {
  113.         return $this->description;
  114.     }
  115.     public function setDescription(string $description): self
  116.     {
  117.         $this->description $description;
  118.         return $this;
  119.     }
  120.     public function getDateOfOutCustoms(): ?\DateTimeInterface
  121.     {
  122.         return $this->dateOfOutCustoms;
  123.     }
  124.     public function setDateOfOutCustoms(\DateTimeInterface $dateOfOutCustoms): self
  125.     {
  126.         $this->dateOfOutCustoms $dateOfOutCustoms;
  127.         return $this;
  128.     }
  129.     public function isIsCompleted(): ?bool
  130.     {
  131.         return $this->isCompleted;
  132.     }
  133.     public function setIsCompleted(bool $isCompleted): self
  134.     {
  135.         $this->isCompleted $isCompleted;
  136.         return $this;
  137.     }
  138.     /**
  139.      * @return Collection<int, Container>
  140.      */
  141.     public function getContainers(): Collection
  142.     {
  143.         return $this->containers;
  144.     }
  145.     public function addContainer(Container $container): self
  146.     {
  147.         if (!$this->containers->contains($container)) {
  148.             $this->containers[] = $container;
  149.             $container->setNewStockTransfer($this);
  150.         }
  151.         return $this;
  152.     }
  153.     public function removeContainer(Container $container): self
  154.     {
  155.         if ($this->containers->removeElement($container)) {
  156.             // set the owning side to null (unless already changed)
  157.             if ($container->getNewStockTransfer() === $this) {
  158.                 $container->setNewStockTransfer(null);
  159.             }
  160.         }
  161.         return $this;
  162.     }
  163. }