<?php
namespace App\Entity;
use App\Repository\OrdersoortRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OrdersoortRepository::class)]
class Ordersoort
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $naam = null;
#[ORM\Column(length: 15)]
private ?string $codenaam = null;
public function __toString(): string
{
return $this->codenaam;
}
public function getId(): ?int
{
return $this->id;
}
public function getNaam(): ?string
{
return $this->naam;
}
public function setNaam(string $naam): self
{
$this->naam = $naam;
return $this;
}
public function getCodenaam(): ?string
{
return $this->codenaam;
}
public function setCodenaam(string $codenaam): self
{
$this->codenaam = $codenaam;
return $this;
}
}