HegreLand/src/Entity/Employee.php

58 lines
932 B
PHP
Raw Normal View History

2024-09-26 15:36:56 +02:00
<?php
namespace App\Entity;
2024-09-26 15:49:16 +02:00
2024-09-26 15:36:56 +02:00
use Doctrine\ORM\Mapping as ORM;
2024-09-26 15:49:16 +02:00
2024-09-26 15:36:56 +02:00
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;
}
}