<?php
namespace App\Core\Entity\InformacionPerfil;
use App\Core\Repository\InformacionPerfil\UniversidadRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=UniversidadRepository::class)
*/
class Universidad
{
const JSON_FIELDS = ['id', 'nombre'];
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups("universidad")
*/
private $id;
/**
* @ORM\Column(type="string", length=100)
* @Groups("universidad")
*/
private $nombre;
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
}