<?php
namespace App\Entity;
use App\Repository\OrderregelRepository;
use App\Entity\Regel;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OrderregelRepository::class)]
class Orderregel
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $tekst = null;
#[ORM\Column(nullable: true)]
private ?int $bedrag = null;
#[ORM\ManyToOne(inversedBy: 'orderregels')]
#[ORM\JoinColumn(nullable: false)]
private ?Order $orderid = null;
#[ORM\ManyToOne]
private ?regel $regel = null;
#[ORM\Column(nullable: true)]
private ?int $volgorde = null;
public function getId(): ?int
{
return $this->id;
}
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;
}
public function getOrderid(): ?Order
{
return $this->orderid;
}
public function setOrderid(?Order $orderid): static
{
$this->orderid = $orderid;
return $this;
}
public function getRegel(): ?regel
{
return $this->regel;
}
public function setRegel(?regel $regel): static
{
$this->regel = $regel;
return $this;
}
public function getVolgorde(): ?int
{
return $this->volgorde;
}
public function setVolgorde(?int $volgorde): static
{
$this->volgorde = $volgorde;
return $this;
}
}