src/Entity/GHContrato.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GHContratoRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Table(name'gh_contrato')]
  7. #[ORM\Entity(repositoryClassGHContratoRepository::class)]
  8. class GHContrato {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length100)]
  14.     private ?string $domicilioContractual null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $periodoPrueba null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  18.     private ?\DateTimeInterface $periodoPruebaFin null;
  19.     #[ORM\Column(length255nullable:true)]
  20.     private ?string $contrato null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullable:true)]
  22.     private ?\DateTimeInterface $fechaImpresion null;
  23.     #[ORM\Column(length255nullable:true)]
  24.     private ?string $firma null;
  25.     #[ORM\ManyToOne(inversedBy'contrato')]
  26.     private ?GHCandidato $candidato null;
  27.     #[ORM\OneToOne(inversedBy'contrato'cascade: ['persist''remove'])]
  28.     private ?GHContratacion $contratacion null;
  29.     
  30.     #[ORM\Column]
  31.     private ?\DateTime $createAt null;
  32.     #[ORM\Column]
  33.     private ?\DateTime $updateAt null;
  34.     #[ORM\Column(length55)]
  35.     private ?string $createUser null;
  36.     #[ORM\Column(length55)]
  37.     private ?string $updateUser null;
  38.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  39.     private ?\DateTimeInterface $fechaInicio null;
  40.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  41.     private ?\DateTimeInterface $fechaFin null;
  42.     #[ORM\ManyToOne(inversedBy'contrato')]
  43.     private ?TerEmpresa $empresaFilial null;
  44.     #[ORM\ManyToOne(targetEntitySecUser::class, inversedBy'contratos')] // Cambia inversedBy según tu diseño
  45.     #[ORM\JoinColumn(nullabletrue)]
  46.     private ?SecUser $user null;
  47.     #[ORM\Column(type'boolean'options: ['default' => false])]
  48.     private bool $notificadoAnualmente false;
  49.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  50.     private ?string $tiempoPeriodoPrueba null;
  51.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  52.     private ?\DateTimeInterface $venceDia null;
  53.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  54.     private ?string $duracionContratoFijo null;
  55.     public function getUser(): ?SecUser
  56.     {
  57.         return $this->user;
  58.     }
  59.     public function setUser(?SecUser $user): static
  60.     {
  61.         $this->user $user;
  62.         return $this;
  63.     }
  64.     public function getCreateAt(): ?\DateTime {
  65.         return $this->createAt;
  66.     }
  67.     public function setCreateAt(\DateTime $createAt): static {
  68.         $this->createAt $createAt;
  69.         return $this;
  70.     }
  71.     public function getUpdateAt(): ?\DateTime {
  72.         return $this->updateAt;
  73.     }
  74.     public function setUpdateAt(\DateTime $updateAt): static {
  75.         $this->updateAt $updateAt;
  76.         return $this;
  77.     }
  78.     public function getCreateUser(): ?string {
  79.         return $this->createUser;
  80.     }
  81.     public function setCreateUser(string $createUser): static {
  82.         $this->createUser $createUser;
  83.         return $this;
  84.     }
  85.     public function getUpdateUser(): ?string {
  86.         return $this->updateUser;
  87.     }
  88.     public function setUpdateUser(string $updateUser): static {
  89.         $this->updateUser $updateUser;
  90.         return $this;
  91.     }
  92.     public function getId(): ?int {
  93.         return $this->id;
  94.     }
  95.     public function getDomicilioContractual(): ?string {
  96.         return $this->domicilioContractual;
  97.     }
  98.     public function setDomicilioContractual(?string $domicilioContractual): void {
  99.         $this->domicilioContractual $domicilioContractual;
  100.     }
  101.     /**
  102.      * @return \DateTimeInterface|null
  103.      */
  104.     public function getPeriodoPrueba(): ?\DateTimeInterface
  105.     {
  106.         return $this->periodoPrueba;
  107.     }
  108.     /**
  109.      * @param \DateTimeInterface|null $periodoPrueba
  110.      */
  111.     public function setPeriodoPrueba(?\DateTimeInterface $periodoPrueba): void
  112.     {
  113.         $this->periodoPrueba $periodoPrueba;
  114.     }
  115.     /**
  116.      * @return \DateTimeInterface|null
  117.      */
  118.     public function getPeriodoPruebaFin(): ?\DateTimeInterface
  119.     {
  120.         return $this->periodoPruebaFin;
  121.     }
  122.     /**
  123.      * @param \DateTimeInterface|null $periodoPruebaFin
  124.      */
  125.     public function setPeriodoPruebaFin(?\DateTimeInterface $periodoPruebaFin): void
  126.     {
  127.         $this->periodoPruebaFin $periodoPruebaFin;
  128.     }
  129.     public function getContrato(): ?string {
  130.         return $this->contrato;
  131.     }
  132.     public function setContrato(string $contrato): static {
  133.         $this->contrato $contrato;
  134.         return $this;
  135.     }
  136.     public function getFechaImpresion(): ?\DateTimeInterface {
  137.         return $this->fechaImpresion;
  138.     }
  139.     public function setFechaImpresion(\DateTimeInterface $fechaImpresion): static {
  140.         $this->fechaImpresion $fechaImpresion;
  141.         return $this;
  142.     }
  143.     public function getFirma(): ?string {
  144.         return $this->firma;
  145.     }
  146.     public function setFirma(string $firma): static {
  147.         $this->firma $firma;
  148.         return $this;
  149.     }
  150.     public function isAprueba(): ?bool {
  151.         return $this->aprueba;
  152.     }
  153.     public function setAprueba(bool $aprueba): static {
  154.         $this->aprueba $aprueba;
  155.         return $this;
  156.     }
  157.     public function getCandidato(): ?GHCandidato {
  158.         return $this->candidato;
  159.     }
  160.     public function setCandidato(?GHCandidato $candidato): static {
  161.         $this->candidato $candidato;
  162.         return $this;
  163.     }
  164.     public function getContratacion(): ?GHContratacion
  165.     {
  166.         return $this->contratacion;
  167.     }
  168.     public function setContratacion(?GHContratacion $contratacion): static
  169.     {
  170.         $this->contratacion $contratacion;
  171.         return $this;
  172.     }
  173.     public function getFechaInicio(): ?\DateTimeInterface
  174.     {
  175.         return $this->fechaInicio;
  176.     }
  177.     public function setFechaInicio(\DateTimeInterface $fechaInicio): static
  178.     {
  179.         $this->fechaInicio $fechaInicio;
  180.         return $this;
  181.     }
  182.     public function getFechaFin(): ?\DateTimeInterface
  183.     {
  184.         return $this->fechaFin;
  185.     }
  186.     public function setFechaFin(?\DateTimeInterface $fechaFin): static
  187.     {
  188.         $this->fechaFin $fechaFin;
  189.         return $this;
  190.     }
  191.     public function getEmpresaFilial(): ?TerEmpresa
  192.     {
  193.         return $this->empresaFilial;
  194.     }
  195.     public function setEmpresaFilial(?TerEmpresa $empresaFilial): static
  196.     {
  197.         $this->empresaFilial $empresaFilial;
  198.         return $this;
  199.     }
  200.     public function isNotificadoAnualmente(): bool
  201.     {
  202.         return $this->notificadoAnualmente;
  203.     }
  204.     public function setNotificadoAnualmente(bool $notificadoAnualmente): static
  205.     {
  206.         $this->notificadoAnualmente $notificadoAnualmente;
  207.         return $this;
  208.     }
  209.     public function getTiempoPeriodoPrueba(): ?string
  210.     {
  211.         return $this->tiempoPeriodoPrueba;
  212.     }
  213.     public function setTiempoPeriodoPrueba(?string $tiempoPeriodoPrueba): static
  214.     {
  215.         $this->tiempoPeriodoPrueba $tiempoPeriodoPrueba;
  216.         return $this;
  217.     }
  218.     public function getVenceDia(): ?\DateTimeInterface
  219.     {
  220.         return $this->venceDia;
  221.     }
  222.     public function setVenceDia(?\DateTimeInterface $venceDia): static
  223.     {
  224.         $this->venceDia $venceDia;
  225.         return $this;
  226.     }
  227.     public function getDuracionContratoFijo(): ?string
  228.     {
  229.         return $this->duracionContratoFijo;
  230.     }
  231.     public function setDuracionContratoFijo(?string $duracionContratoFijo): static
  232.     {
  233.         $this->duracionContratoFijo $duracionContratoFijo;
  234.         return $this;
  235.     }
  236. }