<?php
namespace App\Entity;
use App\Repository\SsoMatriculaRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=SsoMatriculaRepository::class)
*/
class SsoMatricula
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
* @Assert\NotBlank(
* message = "Campo requerido."
* )
* @Assert\Length(
* min = 4,
* max = 150,
* minMessage = "Tamaño mínimo {{ limit }}",
* maxMessage = "Tamaño máximo {{ limit }}"
* )
*/
private $colegio;
/**
* @ORM\Column(type="string", length=50)
* @Assert\NotBlank(
* message = "Campo requerido."
* )
* @Assert\Length(
* max = 50,
* maxMessage = "Tamaño máximo {{ limit }}"
* )
*/
private $tomo;
/**
* @ORM\Column(type="string", length=50)
* @Assert\NotBlank(
* message = "Campo requerido."
* )
* @Assert\Length(
* max = 50,
* maxMessage = "Tamaño máximo {{ limit }}"
* )
*/
private $folio;
/**
* @ORM\Column(type="date")
* @Assert\Range(
* min = "-80 years",
* max = "now",
* notInRangeMessage = "Fecha fuera de rango",
* invalidDateTimeMessage = "Fecha inválida",
* )
* @Assert\NotBlank(
* message = "Campo requerido."
* )
*/
private $fechaMatriculacion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $urlConstanciaMatricula;
/**
* @ORM\ManyToOne(targetEntity=SsoPersona::class, inversedBy="matriculas")
*/
private $persona;
public function getId(): ?int
{
return $this->id;
}
public function getColegio(): ?string
{
return $this->colegio;
}
public function setColegio(string $colegio): self
{
$this->colegio = $colegio;
return $this;
}
public function getTomo(): ?string
{
return $this->tomo;
}
public function setTomo(string $tomo): self
{
$this->tomo = $tomo;
return $this;
}
public function getFolio(): ?string
{
return $this->folio;
}
public function setFolio(string $folio): self
{
$this->folio = $folio;
return $this;
}
public function getFechaMatriculacion(): ?\DateTimeInterface
{
return $this->fechaMatriculacion;
}
public function setFechaMatriculacion(?\DateTimeInterface $fechaMatriculacion): self
{
$this->fechaMatriculacion = $fechaMatriculacion;
return $this;
}
public function getPersona(): ?SsoPersona
{
return $this->persona;
}
public function setPersona(?SsoPersona $persona): self
{
$this->persona = $persona;
return $this;
}
public function getUrlConstanciaMatricula(): ?string
{
return $this->urlConstanciaMatricula;
}
public function setUrlConstanciaMatricula(?string $urlConstanciaMatricula): self
{
$this->urlConstanciaMatricula = $urlConstanciaMatricula;
return $this;
}
}