<?php
namespace App\Entity;
use App\Repository\PersonRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PersonRepository::class)]
class Person
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 20)]
private ?string $salutation = null;
#[ORM\Column(length: 50)]
private ?string $firstname = null;
#[ORM\Column(length: 50)]
private ?string $lastname = null;
public function getId(): ?int
{
return $this->id;
}
public function getSalutation(): ?string
{
return $this->salutation;
}
public function setSalutation(string $salutation): self
{
$this->salutation = $salutation;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
}