<?php
namespace App\Entity\Vs;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'vsbeginnauswahl')]
class VsBeginnAuswahl implements \Stringable
{
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null;
#[ORM\OneToMany(mappedBy: 'beginn_auswahl', targetEntity: Vs::class)]
private Collection $vss;
#[ORM\Column(name: 'beginn_auswahl', type: 'string', length: 200, unique: false, nullable: true)]
private ?string $beginnAuswahl = null;
public function __construct()
{
$this->vss = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getBeginnAuswahl(): ?string
{
return $this->beginnAuswahl;
}
public function setBeginnAuswahl(?string $beginnAuswahl): static
{
$this->beginnAuswahl = $beginnAuswahl;
return $this;
}
#[\Override]
public function __toString(): string
{
return $this->getBeginnAuswahl();
}
public function addVss(Vs $vss): static
{
$this->vss[] = $vss;
return $this;
}
public function removeVss(Vs $vss): void
{
$this->vss->removeElement($vss);
}
public function getVss(): ArrayCollection|Collection
{
return $this->vss;
}
}