src/Entity/DepartamentoPessoalView.php line 15
<?php
namespace App\Entity;
use App\Repository\DepartamentoPessoalRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="departamento_pessoal_view")
*/
#[ORM\Entity(repositoryClass: DepartamentoPessoalRepository::class)]
class DepartamentoPessoalView
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $codigo;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nome = null;
#[ORM\Column(length: 45, nullable: true)]
private ?string $matricula = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $cargo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $atribuicao = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $especieContratacao = null;
#[ORM\Column(length: 45, nullable: true)]
private ?string $vinculo = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $cargaHoraria = null;
#[ORM\Column(length: 1, nullable: true)]
private ?string $tipo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $lotacao = null;
#[ORM\Column(length: 1, nullable: true)]
private ?string $ativo = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $regimeAposentadoria = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $data = null;
#[ORM\Column(length: 1, nullable: true)]
private ?string $cedido = null;
#[ORM\Column(length: 1000, nullable: true)]
private ?string $justificativa = null;
#[ORM\Column(length: 1000, nullable: true)]
private ?string $graduacao = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $funcao = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $contratoEstagio = null;
public function __construct()
{
}
public function getCodigo(): ?int {
return $this->codigo;
}
public function setCodigo(?int $codigo): void {
$this->codigo = $codigo;
}
public function getId(): ?int
{
return $this->id;
}
public function getNome(): ?string
{
return $this->nome;
}
public function setNome(?string $nome): self
{
$this->nome = $nome;
return $this;
}
public function getMatricula(): ?string
{
return $this->matricula;
}
public function setMatricula(?string $matricula): self
{
$this->matricula = $matricula;
return $this;
}
public function getCargo(): ?string
{
return $this->cargo;
}
public function setCargo(?string $cargo): self
{
$this->cargo = $cargo;
return $this;
}
public function getAtribuicao(): ?string
{
return $this->atribuicao;
}
public function setAtribuicao(?string $atribuicao): self
{
$this->atribuicao = $atribuicao;
return $this;
}
public function getEspecieContratacao(): ?string
{
return $this->especieContratacao;
}
public function setEspecieContratacao(?string $especieContratacao): self
{
$this->especieContratacao = $especieContratacao;
return $this;
}
public function getVinculo(): ?string
{
return $this->vinculo;
}
public function setVinculo(?string $vinculo): self
{
$this->vinculo = $vinculo;
return $this;
}
public function getCargaHoraria(): ?string
{
return $this->cargaHoraria;
}
public function setCargaHoraria(?string $cargaHoraria): self
{
$this->cargaHoraria = $cargaHoraria;
return $this;
}
public function getLotacao(): ?string
{
return $this->lotacao;
}
public function setLotacao(?string $lotacao): self
{
$this->lotacao = $lotacao;
return $this;
}
public function getAtivo(): ?string
{
return $this->ativo;
}
public function setAtivo(?string $ativo): self
{
$this->ativo = $ativo;
return $this;
}
public function getRegimeAposentadoria(): ?string
{
return $this->regimeAposentadoria;
}
public function setRegimeAposentadoria(?string $regimeAposentadoria): self
{
$this->regimeAposentadoria = $regimeAposentadoria;
return $this;
}
public function getData(): ?\DateTimeInterface
{
return $this->data;
}
public function setData(?\DateTimeInterface $data): self
{
$this->data = $data;
return $this;
}
public function getLeiAtribuicao(): ?string
{
return $this->leiAtribuicao;
}
public function getCedido(): ?string
{
return $this->cedido;
}
public function setCedido(?string $cedido): self
{
$this->cedido = $cedido;
return $this;
}
public function getJustificativa(): ?string
{
return $this->justificativa;
}
public function setJustificativa(?string $justificativa): self
{
$this->justificativa = $justificativa;
return $this;
}
public function getGraduacao(): ?string
{
return $this->graduacao;
}
public function setGraduacao(?string $graduacao): self
{
$this->graduacao = $graduacao;
return $this;
}
public function getFuncao(): ?string
{
return $this->funcao;
}
public function setFuncao(?string $funcao): self
{
$this->funcao = $funcao;
return $this;
}
public function getContratoEstagio(): ?string
{
return $this->contratoEstagio;
}
public function setContratoEstagio(?string $contratoEstagio): self
{
$this->contratoEstagio = $contratoEstagio;
return $this;
}
public function getTipo(): ?string {
return $this->tipo;
}
public function setTipo(?string $tipo): void {
$this->tipo = $tipo;
}
public function viewAtivo(): ?string {
if($this->ativo =="A" ){
return "ATIVADO";
}else{
return "DESATIVADO";
}
}
public function viewTipo(): ?string {
if($this->tipo =="1" ){
return "ADMISSÃO";
}else{
return "EXONERAÇÃO";
}
}
}