<?php
namespace App\Entity;
use App\Repository\NumeroSedeRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=NumeroSedeRepository::class)
* @ORM\Table(name="numeroSede")
*/
class NumeroSede
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Sede::class, inversedBy="numeroSedes")
* @ORM\JoinColumn(nullable=false)
*/
private $sede;
/**
* @ORM\ManyToOne(targetEntity=NumeroCompetencia::class, inversedBy="numeroSedes")
* @ORM\JoinColumn(nullable=false)
*/
private $numeroCompetencia;
/**
* @ORM\Column(type="text")
*/
private $series;
public function __construct()
{
}
public function __toString(): string
{
return $this->getNombre();
}
public function getId(): ?int
{
return $this->id;
}
public function getSede(): ?Sede
{
return $this->sede;
}
public function setSede(?Sede $sede): self
{
$this->sede = $sede;
return $this;
}
public function getNumeroCompetencia(): ?NumeroCompetencia
{
return $this->numeroCompetencia;
}
public function setNumeroCompetencia(?NumeroCompetencia $numeroCompetencia): self
{
$this->numeroCompetencia = $numeroCompetencia;
return $this;
}
public function getSeries(): ?string
{
return $this->series;
}
public function setSeries(string $series): self
{
$this->series = $series;
return $this;
}
}