<?php
namespace App\Entity;
use App\Entity\Onderdeel;
use App\Entity\Opslaglocatie;
use App\Entity\Bewerking;
use App\Repository\OrderonderdeelRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OrderonderdeelRepository::class)]
class Orderonderdeel
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $naam = null;
#[ORM\Column(nullable: true)]
private ?int $lengte = null;
#[ORM\Column(nullable: true)]
private ?int $breedte = null;
#[ORM\Column(nullable: true)]
private ?int $dikte = null;
#[ORM\ManyToOne(inversedBy: 'orderonderdeels')]
#[ORM\JoinColumn(nullable: true)]
private ?order $orderid = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?onderdeel $onderdeel = null;
#[ORM\ManyToOne]
private ?Materiaal $materiaal = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $opmerkingen = null;
#[ORM\ManyToOne(inversedBy: 'orderonderdelen')]
private ?Bestelling $bestelling = null;
#[ORM\Column]
private ?int $aantal = null;
#[ORM\Column]
private ?int $aantal_geleverd = null;
#[ORM\ManyToOne(inversedBy: 'orderonderdelen')]
private ?opslaglocatie $opslaglocatie = null;
#[ORM\ManyToOne]
private ?bewerking $bewerking = null;
public function getId(): ?int
{
return $this->id;
}
public function getNaam(): ?string
{
return $this->naam;
}
public function setNaam(string $naam): static
{
$this->naam = $naam;
return $this;
}
public function getLengte(): ?int
{
return $this->lengte;
}
public function setLengte(?int $lengte): static
{
$this->lengte = $lengte;
return $this;
}
public function getBreedte(): ?int
{
return $this->breedte;
}
public function setBreedte(?int $breedte): static
{
$this->breedte = $breedte;
return $this;
}
public function getDikte(): ?int
{
return $this->dikte;
}
public function setDikte(?int $dikte): static
{
$this->dikte = $dikte;
return $this;
}
public function getOrderid(): ?order
{
return $this->orderid;
}
public function setOrderid(?order $orderid): static
{
$this->orderid = $orderid;
return $this;
}
public function getOnderdeel(): ?onderdeel
{
return $this->onderdeel;
}
public function setOnderdeel(?onderdeel $onderdeel): static
{
$this->onderdeel = $onderdeel;
return $this;
}
public function getMateriaal(): ?Materiaal
{
return $this->materiaal;
}
public function setMateriaal(?Materiaal $materiaal): static
{
$this->materiaal = $materiaal;
return $this;
}
public function getOpmerkingen(): ?string
{
return $this->opmerkingen;
}
public function setOpmerkingen(?string $opmerkingen): static
{
$this->opmerkingen = $opmerkingen;
return $this;
}
public function getBestelling(): ?bestelling
{
return $this->bestelling;
}
public function setBestelling(?bestelling $bestelling): static
{
$this->bestelling = $bestelling;
return $this;
}
public function getAantal(): ?int
{
return $this->aantal;
}
public function setAantal(int $aantal): static
{
$this->aantal = $aantal;
return $this;
}
public function getAantalGeleverd(): ?int
{
return $this->aantal_geleverd;
}
public function setAantalGeleverd(int $aantal_geleverd): static
{
$this->aantal_geleverd = $aantal_geleverd;
return $this;
}
public function getOpslaglocatie(): ?opslaglocatie
{
return $this->opslaglocatie;
}
public function setOpslaglocatie(?opslaglocatie $opslaglocatie): static
{
$this->opslaglocatie = $opslaglocatie;
return $this;
}
public function getBewerking(): ?bewerking
{
return $this->bewerking;
}
public function setBewerking(?bewerking $bewerking): static
{
$this->bewerking = $bewerking;
return $this;
}
}