<?php
namespace App\Entity;
use App\Entity\Onderdeel;
use App\Entity\Materiaal;
use App\Entity\Bewerking;
use App\Repository\ModelonderdeelRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ModelonderdeelRepository::class)]
class Modelonderdeel
{
#[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: 'modelonderdelen')]
#[ORM\JoinColumn(nullable: false)]
private ?model $model = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?onderdeel $onderdeel = null;
#[ORM\ManyToOne]
private ?materiaal $materiaal = null;
#[ORM\Column]
private ?int $aantal = 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 getModel(): ?model
{
return $this->model;
}
public function setModel(?model $model): static
{
$this->model = $model;
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 getAantal(): ?int
{
return $this->aantal;
}
public function setAantal(int $aantal): static
{
$this->aantal = $aantal;
return $this;
}
public function getBewerking(): ?bewerking
{
return $this->bewerking;
}
public function setBewerking(?bewerking $bewerking): static
{
$this->bewerking = $bewerking;
return $this;
}
}