src/Entity/JurNorma.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\JurNormaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassJurNormaRepository::class)]
  9. class JurNorma {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'norma')]
  15.     private ?ParTipoNorma $tipoNorma null;
  16.     #[ORM\Column(length20)]
  17.     private ?string $numero null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  19.     private ?\DateTimeInterface $fechaEmision null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $consNorma null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  23.     private ?\DateTimeInterface $fechaVigencia null;
  24.     #[ORM\ManyToOne(inversedBy'norma')]
  25.     private ?ParEstado $estado null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $titulo null;
  28.     #[ORM\Column(typeTypes::TEXT)]
  29.     private ?string $palabrasClave null;
  30.     #[ORM\Column(typeTypes::TEXT)]
  31.     private ?string $descripcion null;
  32.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  33.     private ?string $comentario null;
  34.     #[ORM\ManyToMany(targetEntityParProceso::class, inversedBy'norma')]
  35.     private Collection $procesos;
  36.     #[ORM\Column(nullabletrue)]
  37.     private ?bool $sanciones null;
  38.     #[ORM\Column(typeTypes::TEXTnullable:true)]
  39.     private ?string $tipoSancion null;
  40.     #[ORM\Column(typeTypes::DECIMALprecision11scale2nullabletrue)]
  41.     private ?string $montoSancion null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $linkConsulta null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $archivo null;
  46.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  47.     private ?\DateTimeInterface $createAt null;
  48.     #[ORM\Column(length50)]
  49.     private ?string $createUser null;
  50.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  51.     private ?\DateTimeInterface $updateAt null;
  52.     #[ORM\Column(length50)]
  53.     private ?string $updateUser null;
  54.     #[ORM\ManyToOne(inversedBy'norma')]
  55.     private ?ParEntidadEmisora $entidadEmisora null;
  56.     #[ORM\OneToMany(mappedBy'norma'targetEntityJurNormaEnvio::class)]
  57.     private Collection $normaEnvio;
  58.     #[ORM\ManyToMany(targetEntityParCampo::class, inversedBy'norma')]
  59.     private Collection $campoAplicacion;
  60.     public function __construct() {
  61.         $this->procesos = new ArrayCollection();
  62.         $this->normaEnvio = new ArrayCollection();
  63.         $this->campoAplicacion = new ArrayCollection();
  64.     }
  65.     public function getId(): ?int {
  66.         return $this->id;
  67.     }
  68.     public function getNumero(): ?string {
  69.         return $this->numero;
  70.     }
  71.     public function setNumero(string $numero): static {
  72.         $this->numero $numero;
  73.         return $this;
  74.     }
  75.     public function getFechaEmision(): ?\DateTimeInterface {
  76.         return $this->fechaEmision;
  77.     }
  78.     public function setFechaEmision(\DateTimeInterface $fechaEmision): static {
  79.         $this->fechaEmision $fechaEmision;
  80.         return $this;
  81.     }
  82.     public function getConsNorma(): ?string {
  83.         return $this->consNorma;
  84.     }
  85.     public function setConsNorma(string $consNorma): static {
  86.         $this->consNorma $consNorma;
  87.         return $this;
  88.     }
  89.     public function getFechaVigencia(): ?\DateTimeInterface {
  90.         return $this->fechaVigencia;
  91.     }
  92.     public function setFechaVigencia(\DateTimeInterface $fechaVigencia): static {
  93.         $this->fechaVigencia $fechaVigencia;
  94.         return $this;
  95.     }
  96.     public function getEstado(): ?ParEstado {
  97.         return $this->estado;
  98.     }
  99.     public function setEstado(?ParEstado $estado): static {
  100.         $this->estado $estado;
  101.         return $this;
  102.     }
  103.     public function getTitulo(): ?string {
  104.         return $this->titulo;
  105.     }
  106.     public function setTitulo(string $titulo): static {
  107.         $this->titulo $titulo;
  108.         return $this;
  109.     }
  110.     public function getPalabrasClave(): ?string {
  111.         return $this->palabrasClave;
  112.     }
  113.     public function setPalabrasClave(string $palabrasClave): static {
  114.         $this->palabrasClave $palabrasClave;
  115.         return $this;
  116.     }
  117.     public function getDescripcion(): ?string {
  118.         return $this->descripcion;
  119.     }
  120.     public function setDescripcion(string $descripcion): static {
  121.         $this->descripcion $descripcion;
  122.         return $this;
  123.     }
  124.     public function getComentario(): ?string {
  125.         return $this->comentario;
  126.     }
  127.     public function setComentario(?string $comentario): static {
  128.         $this->comentario $comentario;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return Collection<int, ParProceso>
  133.      */
  134.     public function getProcesos(): Collection {
  135.         return $this->procesos;
  136.     }
  137.     public function addProceso(ParProceso $proceso): static {
  138.         if (!$this->procesos->contains($proceso)) {
  139.             $this->procesos->add($proceso);
  140.         }
  141.         return $this;
  142.     }
  143.     public function removeProceso(ParProceso $proceso): static {
  144.         $this->procesos->removeElement($proceso);
  145.         return $this;
  146.     }
  147.     public function isSanciones(): ?bool {
  148.         return $this->sanciones;
  149.     }
  150.     public function setSanciones(?bool $sanciones): static {
  151.         $this->sanciones $sanciones;
  152.         return $this;
  153.     }
  154.     public function getTipoSancion(): ?string {
  155.         return $this->tipoSancion;
  156.     }
  157.     public function setTipoSancion(string $tipoSancion): static {
  158.         $this->tipoSancion $tipoSancion;
  159.         return $this;
  160.     }
  161.     public function getMontoSancion(): ?string {
  162.         return $this->montoSancion;
  163.     }
  164.     public function setMontoSancion(string $montoSancion): static {
  165.         $this->montoSancion $montoSancion;
  166.         return $this;
  167.     }
  168.     public function getLinkConsulta(): ?string {
  169.         return $this->linkConsulta;
  170.     }
  171.     public function setLinkConsulta(?string $linkConsulta): static {
  172.         $this->linkConsulta $linkConsulta;
  173.         return $this;
  174.     }
  175.     public function getArchivo(): ?string {
  176.         return $this->archivo;
  177.     }
  178.     public function setArchivo(?string $archivo): static {
  179.         $this->archivo $archivo;
  180.         return $this;
  181.     }
  182.     public function getCreateAt(): ?\DateTimeInterface {
  183.         return $this->createAt;
  184.     }
  185.     public function setCreateAt(\DateTimeInterface $createAt): static {
  186.         $this->createAt $createAt;
  187.         return $this;
  188.     }
  189.     public function getCreateUser(): ?string {
  190.         return $this->createUser;
  191.     }
  192.     public function setCreateUser(string $createUser): static {
  193.         $this->createUser $createUser;
  194.         return $this;
  195.     }
  196.     public function getUpdateAt(): ?\DateTimeInterface {
  197.         return $this->updateAt;
  198.     }
  199.     public function setUpdateAt(\DateTimeInterface $updateAt): static {
  200.         $this->updateAt $updateAt;
  201.         return $this;
  202.     }
  203.     public function getUpdateUser(): ?string {
  204.         return $this->updateUser;
  205.     }
  206.     public function setUpdateUser(string $updateUser): static {
  207.         $this->updateUser $updateUser;
  208.         return $this;
  209.     }
  210.     public function getTipoNorma(): ?ParTipoNorma {
  211.         return $this->tipoNorma;
  212.     }
  213.     public function setTipoNorma(?ParTipoNorma $tipoNorma): static {
  214.         $this->tipoNorma $tipoNorma;
  215.         return $this;
  216.     }
  217.     public function getEntidadEmisora(): ?ParEntidadEmisora
  218.     {
  219.         return $this->entidadEmisora;
  220.     }
  221.     public function setEntidadEmisora(?ParEntidadEmisora $entidadEmisora): static
  222.     {
  223.         $this->entidadEmisora $entidadEmisora;
  224.         return $this;
  225.     }
  226.     /**
  227.      * @return Collection<int, JurNormaEnvio>
  228.      */
  229.     public function getNormaEnvio(): Collection
  230.     {
  231.         return $this->normaEnvio;
  232.     }
  233.     public function addNormaEnvio(JurNormaEnvio $normaEnvio): static
  234.     {
  235.         if (!$this->normaEnvio->contains($normaEnvio)) {
  236.             $this->normaEnvio->add($normaEnvio);
  237.             $normaEnvio->setNorma($this);
  238.         }
  239.         return $this;
  240.     }
  241.     public function removeNormaEnvio(JurNormaEnvio $normaEnvio): static
  242.     {
  243.         if ($this->normaEnvio->removeElement($normaEnvio)) {
  244.             // set the owning side to null (unless already changed)
  245.             if ($normaEnvio->getNorma() === $this) {
  246.                 $normaEnvio->setNorma(null);
  247.             }
  248.         }
  249.         return $this;
  250.     }
  251.     /**
  252.      * @return Collection<int, ParCampo>
  253.      */
  254.     public function getCampoAplicacion(): Collection
  255.     {
  256.         return $this->campoAplicacion;
  257.     }
  258.     public function addCampoAplicacion(ParCampo $campoAplicacion): static
  259.     {
  260.         if (!$this->campoAplicacion->contains($campoAplicacion)) {
  261.             $this->campoAplicacion->add($campoAplicacion);
  262.         }
  263.         return $this;
  264.     }
  265.     public function removeCampoAplicacion(ParCampo $campoAplicacion): static
  266.     {
  267.         $this->campoAplicacion->removeElement($campoAplicacion);
  268.         return $this;
  269.     }
  270. }