src/Entity/SsoMatricula.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SsoMatriculaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SsoMatriculaRepository::class)
  8.  */
  9. class SsoMatricula
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      * @Assert\NotBlank(
  20.      *     message = "Campo requerido."
  21.      * )
  22.      * @Assert\Length(
  23.      *      min = 4,
  24.      *      max = 150,
  25.      *      minMessage = "Tamaño mínimo {{ limit }}",
  26.      *      maxMessage = "Tamaño máximo {{ limit }}"
  27.      * )
  28.      */
  29.     private $colegio;
  30.     /**
  31.      * @ORM\Column(type="string", length=50)
  32.      * @Assert\NotBlank(
  33.      *     message = "Campo requerido."
  34.      * )
  35.      * @Assert\Length(
  36.      *      max = 50,
  37.      *      maxMessage = "Tamaño máximo {{ limit }}"
  38.      * )
  39.      */
  40.     private $tomo;
  41.     /**
  42.      * @ORM\Column(type="string", length=50)
  43.      * @Assert\NotBlank(
  44.      *     message = "Campo requerido."
  45.      * )
  46.      * @Assert\Length(
  47.      *      max = 50,
  48.      *      maxMessage = "Tamaño máximo {{ limit }}"
  49.      * )
  50.      */
  51.     private $folio;
  52.     /**
  53.      * @ORM\Column(type="date")
  54.      * @Assert\Range(
  55.      *      min = "-80 years",
  56.      *      max = "now",
  57.      *      notInRangeMessage = "Fecha fuera de rango",
  58.      *      invalidDateTimeMessage = "Fecha inválida",
  59.      * )
  60.      * @Assert\NotBlank(
  61.      *     message = "Campo requerido."
  62.      * )
  63.      */
  64.     private $fechaMatriculacion;
  65.     /**
  66.      * @ORM\Column(type="string", length=255, nullable=true)
  67.      */
  68.     private $urlConstanciaMatricula;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity=SsoPersona::class, inversedBy="matriculas")
  71.      */
  72.     private $persona;
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getColegio(): ?string
  78.     {
  79.         return $this->colegio;
  80.     }
  81.     public function setColegio(string $colegio): self
  82.     {
  83.         $this->colegio $colegio;
  84.         return $this;
  85.     }
  86.     public function getTomo(): ?string
  87.     {
  88.         return $this->tomo;
  89.     }
  90.     public function setTomo(string $tomo): self
  91.     {
  92.         $this->tomo $tomo;
  93.         return $this;
  94.     }
  95.     public function getFolio(): ?string
  96.     {
  97.         return $this->folio;
  98.     }
  99.     public function setFolio(string $folio): self
  100.     {
  101.         $this->folio $folio;
  102.         return $this;
  103.     }
  104.     public function getFechaMatriculacion(): ?\DateTimeInterface
  105.     {
  106.         return $this->fechaMatriculacion;
  107.     }
  108.     public function setFechaMatriculacion(?\DateTimeInterface $fechaMatriculacion): self
  109.     {
  110.         $this->fechaMatriculacion $fechaMatriculacion;
  111.         return $this;
  112.     }
  113.     public function getPersona(): ?SsoPersona
  114.     {
  115.         return $this->persona;
  116.     }
  117.     public function setPersona(?SsoPersona $persona): self
  118.     {
  119.         $this->persona $persona;
  120.         return $this;
  121.     }
  122.     public function getUrlConstanciaMatricula(): ?string
  123.     {
  124.         return $this->urlConstanciaMatricula;
  125.     }
  126.     public function setUrlConstanciaMatricula(?string $urlConstanciaMatricula): self
  127.     {
  128.         $this->urlConstanciaMatricula $urlConstanciaMatricula;
  129.         return $this;
  130.     }
  131. }