src/Entity/DepartamentoPessoal.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DepartamentoPessoalRepository;
  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(repositoryClassDepartamentoPessoalRepository::class)]
  9. class DepartamentoPessoal
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     
  16.     #[ORM\Column]
  17.     private ?int $codigo;
  18.    
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $administracao null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $nome null;
  23.     #[ORM\Column(length45nullabletrue)]
  24.     private ?string $matricula null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $cargo null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $atribuicao null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $especieContratacao null;
  31.     #[ORM\Column(length45nullabletrue)]
  32.     private ?string $vinculo null;
  33.     #[ORM\Column(length10nullabletrue)]
  34.     private ?string $cargaHoraria null;
  35.     
  36.     #[ORM\Column(length1nullabletrue)]
  37.     private ?string $tipo null;    
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $lotacao null;
  40.     #[ORM\Column(length1nullabletrue)]
  41.     private ?string $ativo null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $regimeAposentadoria null;
  44.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  45.     private ?\DateTimeInterface $data null;
  46.     #[ORM\Column(length1nullabletrue)]
  47.     private ?string $cedido null;
  48.     #[ORM\Column(length1000nullabletrue)]
  49.     private ?string $justificativa null;
  50.     #[ORM\Column(length1000nullabletrue)]
  51.     private ?string $graduacao null;
  52.     #[ORM\Column(length255nullabletrue)]
  53.     private ?string $funcao null;
  54.     #[ORM\Column(length255nullabletrue)]
  55.     private ?string $contratoEstagio null;
  56.     public function __construct()
  57.     {
  58.     }
  59.     public function getCodigo(): ?int {
  60.         return $this->codigo;
  61.     }
  62.     public function setCodigo(?int $codigo): void {
  63.         $this->codigo $codigo;
  64.     }
  65.         public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getAdministracao(): ?string
  70.     {
  71.         return $this->administracao;
  72.     }
  73.     public function setAdministracao(?string $administracao): self
  74.     {
  75.         $this->administracao $administracao;
  76.         return $this;
  77.     }
  78.     public function getNome(): ?string
  79.     {
  80.         return $this->nome;
  81.     }
  82.     public function setNome(?string $nome): self
  83.     {
  84.         $this->nome $nome;
  85.         return $this;
  86.     }
  87.     public function getMatricula(): ?string
  88.     {
  89.         return $this->matricula;
  90.     }
  91.     public function setMatricula(?string $matricula): self
  92.     {
  93.         $this->matricula $matricula;
  94.         return $this;
  95.     }
  96.     public function getCargo(): ?string
  97.     {
  98.         return $this->cargo;
  99.     }
  100.     public function setCargo(?string $cargo): self
  101.     {
  102.         $this->cargo $cargo;
  103.         return $this;
  104.     }
  105.     public function getAtribuicao(): ?string
  106.     {
  107.         return $this->atribuicao;
  108.     }
  109.     public function setAtribuicao(?string $atribuicao): self
  110.     {
  111.         $this->atribuicao $atribuicao;
  112.         return $this;
  113.     }
  114.     public function getEspecieContratacao(): ?string
  115.     {
  116.         return $this->especieContratacao;
  117.     }
  118.     public function setEspecieContratacao(?string $especieContratacao): self
  119.     {
  120.         $this->especieContratacao $especieContratacao;
  121.         return $this;
  122.     }
  123.     public function getVinculo(): ?string
  124.     {
  125.         return $this->vinculo;
  126.     }
  127.     public function setVinculo(?string $vinculo): self
  128.     {
  129.         $this->vinculo $vinculo;
  130.         return $this;
  131.     }
  132.     public function getCargaHoraria(): ?string
  133.     {
  134.         return $this->cargaHoraria;
  135.     }
  136.     public function setCargaHoraria(?string $cargaHoraria): self
  137.     {
  138.         $this->cargaHoraria $cargaHoraria;
  139.         return $this;
  140.     }
  141.     public function getLotacao(): ?string
  142.     {
  143.         return $this->lotacao;
  144.     }
  145.     public function setLotacao(?string $lotacao): self
  146.     {
  147.         $this->lotacao $lotacao;
  148.         return $this;
  149.     }
  150.     public function getAtivo(): ?string
  151.     {
  152.         return $this->ativo;
  153.     }
  154.     public function setAtivo(?string $ativo): self
  155.     {
  156.         $this->ativo $ativo;
  157.         return $this;
  158.     }
  159.     public function getRegimeAposentadoria(): ?string
  160.     {
  161.         return $this->regimeAposentadoria;
  162.     }
  163.     public function setRegimeAposentadoria(?string $regimeAposentadoria): self
  164.     {
  165.         $this->regimeAposentadoria $regimeAposentadoria;
  166.         return $this;
  167.     }
  168.     public function getData(): ?\DateTimeInterface
  169.     {
  170.         return $this->data;
  171.     }
  172.     public function setData(?\DateTimeInterface $data): self
  173.     {
  174.         $this->data $data;
  175.         return $this;
  176.     }
  177.     public function getLeiAtribuicao(): ?string
  178.     {
  179.         return $this->leiAtribuicao;
  180.     }
  181.     public function getCedido(): ?string
  182.     {
  183.         return $this->cedido;
  184.     }
  185.     public function setCedido(?string $cedido): self
  186.     {
  187.         $this->cedido $cedido;
  188.         return $this;
  189.     }
  190.     public function getJustificativa(): ?string
  191.     {
  192.         return $this->justificativa;
  193.     }
  194.     public function setJustificativa(?string $justificativa): self
  195.     {
  196.         $this->justificativa $justificativa;
  197.         return $this;
  198.     }
  199.     public function getGraduacao(): ?string
  200.     {
  201.         return $this->graduacao;
  202.     }
  203.     public function setGraduacao(?string $graduacao): self
  204.     {
  205.         $this->graduacao $graduacao;
  206.         return $this;
  207.     }
  208.     public function getFuncao(): ?string
  209.     {
  210.         return $this->funcao;
  211.     }
  212.     public function setFuncao(?string $funcao): self
  213.     {
  214.         $this->funcao $funcao;
  215.         return $this;
  216.     }
  217.     public function getContratoEstagio(): ?string
  218.     {
  219.         return $this->contratoEstagio;
  220.     }
  221.     public function setContratoEstagio(?string $contratoEstagio): self
  222.     {
  223.         $this->contratoEstagio $contratoEstagio;
  224.         return $this;
  225.     }
  226.     public function getTipo(): ?string {
  227.         return $this->tipo;
  228.     }
  229.     public function setTipo(?string $tipo): void {
  230.         $this->tipo $tipo;
  231.     }
  232.     public function viewAtivo(): ?string {
  233.         if($this->ativo =="A" ){
  234.             return "ATIVADO";
  235.         }else{
  236.             return "DESATIVADO";
  237.         }
  238.     } 
  239.     public function viewTipo(): ?string {
  240.         if($this->tipo =="1" ){
  241.             return "ADMISSÃO";
  242.         }else{
  243.             return "EXONERAÇÃO";
  244.         }
  245.     }  
  246.      
  247.     
  248. }