src/Entity/DepartamentoPessoalView.php line 15

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