<?php
namespace App\Entity;
use App\Repository\GenderRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GenderRepository::class)]
class Gender
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $type = null;
#[ORM\Column(nullable: true)]
private ?int $key = null;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getKey(): ?int
{
return $this->key;
}
public function setKey(?int $key): self
{
$this->key = $key;
return $this;
}
}