src/Entity/NumeroSede.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NumeroSedeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=NumeroSedeRepository::class)
  7.  * @ORM\Table(name="numeroSede")
  8.  */
  9. class NumeroSede
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Sede::class, inversedBy="numeroSedes")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $sede;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=NumeroCompetencia::class, inversedBy="numeroSedes")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $numeroCompetencia;
  27.     /**
  28.      * @ORM\Column(type="text")
  29.      */
  30.     private $series;
  31.     public function __construct()
  32.     {
  33.     }
  34.     public function __toString(): string
  35.     {
  36.         return $this->getNombre();
  37.     }
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getSede(): ?Sede
  43.     {
  44.         return $this->sede;
  45.     }
  46.     public function setSede(?Sede $sede): self
  47.     {
  48.         $this->sede $sede;
  49.         return $this;
  50.     }
  51.     public function getNumeroCompetencia(): ?NumeroCompetencia
  52.     {
  53.         return $this->numeroCompetencia;
  54.     }
  55.     public function setNumeroCompetencia(?NumeroCompetencia $numeroCompetencia): self
  56.     {
  57.         $this->numeroCompetencia $numeroCompetencia;
  58.         return $this;
  59.     }
  60.     public function getSeries(): ?string
  61.     {
  62.         return $this->series;
  63.     }
  64.     public function setSeries(string $series): self
  65.     {
  66.         $this->series $series;
  67.         return $this;
  68.     }
  69. }