58 lines
1.0 KiB
PHP
58 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Entity;
|
||
|
|
||
|
use App\Repository\EmployeeRepository;
|
||
|
use Doctrine\ORM\Mapping as ORM;
|
||
|
|
||
|
#[ORM\Entity(repositoryClass: EmployeeRepository::class)]
|
||
|
class Employee
|
||
|
{
|
||
|
#[ORM\Id]
|
||
|
#[ORM\GeneratedValue]
|
||
|
#[ORM\Column]
|
||
|
private ?int $id = null;
|
||
|
|
||
|
#[ORM\Column(length: 30)]
|
||
|
private ?string $firstName = null;
|
||
|
|
||
|
#[ORM\Column(length: 30)]
|
||
|
private ?string $lastName = null;
|
||
|
|
||
|
public function getId(): ?int
|
||
|
{
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
public function setId(int $id): static
|
||
|
{
|
||
|
$this->id = $id;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getFirstName(): ?string
|
||
|
{
|
||
|
return $this->firstName;
|
||
|
}
|
||
|
|
||
|
public function setFirstName(string $firstName): static
|
||
|
{
|
||
|
$this->firstName = $firstName;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getLastName(): ?string
|
||
|
{
|
||
|
return $this->lastName;
|
||
|
}
|
||
|
|
||
|
public function setLastName(string $lastName): static
|
||
|
{
|
||
|
$this->lastName = $lastName;
|
||
|
|
||
|
return $this;
|
||
|
}
|
||
|
}
|