<?php
namespace App\Entity;
use App\Repository\RegelRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RegelRepository::class)]
class Regel
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $naam = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $tekst = null;
#[ORM\Column(nullable: true)]
private ?int $bedrag = null;
public function __toString()
{
return $this->naam;
}
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 getTekst(): ?string
{
return $this->tekst;
}
public function setTekst(?string $tekst): static
{
$this->tekst = $tekst;
return $this;
}
public function getBedrag(): ?int
{
return $this->bedrag;
}
public function setBedrag(?int $bedrag): static
{
$this->bedrag = $bedrag;
return $this;
}
}