<?phpnamespace App\Entity\RRHH;use App\Repository\RRHH\EmpleadoRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=EmpleadoRepository::class) * @ORM\Table(name="rrhh_empleado") */class Empleado{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $apellido; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $nombre; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $legajo; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $cuit; /** * @ORM\Column(type="boolean") */ private $empleado = true; /** * @ORM\Column(type="boolean") */ private $activo = true; public function getLegajoNombre() { return $this->legajo . ' - ' . strtoupper($this->apellido . ', ' . $this->nombre); } public function __toString() { return strtoupper($this->apellido . ', ' . $this->nombre); } public function getId(): ?int { return $this->id; } public function getApellido(): ?string { return $this->apellido; } public function setApellido(string $apellido): self { $this->apellido = $apellido; return $this; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(string $nombre): self { $this->nombre = $nombre; return $this; } public function getLegajo(): ?string { return $this->legajo; } public function setLegajo(string $legajo): self { $this->legajo = $legajo; return $this; } public function isActivo(): ?bool { return $this->activo; } public function setActivo(bool $activo): self { $this->activo = $activo; return $this; } public function getCuit(): ?string { return $this->cuit; } public function setCuit(?string $cuit): self { $this->cuit = $cuit; return $this; } public function isEmpleado(): ?bool { return $this->empleado; } public function setEmpleado(bool $empleado): self { $this->empleado = $empleado; return $this; }}