src/Entity/Ordersoort.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrdersoortRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassOrdersoortRepository::class)]
  6. class Ordersoort
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $naam null;
  14.     #[ORM\Column(length15)]
  15.     private ?string $codenaam null;
  16.     public function __toString(): string
  17.     {
  18.         return $this->codenaam;
  19.     }
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getNaam(): ?string
  25.     {
  26.         return $this->naam;
  27.     }
  28.     public function setNaam(string $naam): self
  29.     {
  30.         $this->naam $naam;
  31.         return $this;
  32.     }
  33.     public function getCodenaam(): ?string
  34.     {
  35.         return $this->codenaam;
  36.     }
  37.     public function setCodenaam(string $codenaam): self
  38.     {
  39.         $this->codenaam $codenaam;
  40.         return $this;
  41.     }
  42. }