<?phpnamespace App\Entity;use App\Repository\NewStockTransferRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: NewStockTransferRepository::class)]class NewStockTransfer extends BaseEntity{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\ManyToOne(targetEntity: Warehouse::class, inversedBy: 'newStockTransfers')] private $arrivalWarehouse; #[ORM\Column(type: 'integer')] private $containerNumber; #[ORM\Column(type: 'string', length: 255)] private $invoiceNumber; #[ORM\Column(type: 'string', length: 255)] private $konsimento; #[ORM\Column(type: 'decimal', precision: 19, scale: 4)] private $totalNavlun; #[ORM\Column(type: 'text')] private $description; #[ORM\Column(type: 'date')] private $dateOfOutCustoms; #[ORM\Column(type: 'date')] private $dateOfArrivalWarehouse; #[ORM\Column(type: 'boolean')] private $isCompleted; #[ORM\OneToMany(mappedBy: 'newStockTransfer', targetEntity: Container::class)] private $containers; public function __construct() { $this->containers = new ArrayCollection(); } /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id */ public function setId($id): void { $this->id = $id; } /** * @return mixed */ public function getDateOfArrivalWarehouse() { return $this->dateOfArrivalWarehouse; } /** * @param mixed $dateOfArrivalWarehouse */ public function setDateOfArrivalWarehouse($dateOfArrivalWarehouse): void { $this->dateOfArrivalWarehouse = $dateOfArrivalWarehouse; } public function getArrivalWarehouse(): ?Warehouse { return $this->arrivalWarehouse; } public function setArrivalWarehouse(?Warehouse $arrivalWarehouse): self { $this->arrivalWarehouse = $arrivalWarehouse; return $this; } public function getContainerNumber(): ?int { return $this->containerNumber; } public function setContainerNumber(int $containerNumber): self { $this->containerNumber = $containerNumber; return $this; } public function getInvoiceNumber(): ?string { return $this->invoiceNumber; } public function setInvoiceNumber(string $invoiceNumber): self { $this->invoiceNumber = $invoiceNumber; return $this; } public function getKonsimento(): ?string { return $this->konsimento; } public function setKonsimento(string $konsimento): self { $this->konsimento = $konsimento; return $this; } public function getTotalNavlun(): ?float { return $this->totalNavlun; } public function setTotalNavlun(float $totalNavlun): self { $this->totalNavlun = $totalNavlun; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getDateOfOutCustoms(): ?\DateTimeInterface { return $this->dateOfOutCustoms; } public function setDateOfOutCustoms(\DateTimeInterface $dateOfOutCustoms): self { $this->dateOfOutCustoms = $dateOfOutCustoms; return $this; } public function isIsCompleted(): ?bool { return $this->isCompleted; } public function setIsCompleted(bool $isCompleted): self { $this->isCompleted = $isCompleted; return $this; } /** * @return Collection<int, Container> */ public function getContainers(): Collection { return $this->containers; } public function addContainer(Container $container): self { if (!$this->containers->contains($container)) { $this->containers[] = $container; $container->setNewStockTransfer($this); } return $this; } public function removeContainer(Container $container): self { if ($this->containers->removeElement($container)) { // set the owning side to null (unless already changed) if ($container->getNewStockTransfer() === $this) { $container->setNewStockTransfer(null); } } return $this; }}