src/Entity/Trainee.php line 11
<?phpnamespace App\Entity;use App\Repository\TraineeRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use http\Client;#[ORM\Entity(repositoryClass: TraineeRepository::class)]class Trainee{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 180, nullable: false)]private ?string $email = null;#[ORM\Column(length: 255, nullable: true)]private ?string $firstName = null;#[ORM\Column(length: 255, nullable: true)]private ?string $lastName = null;#[ORM\Column(length: 70, nullable: true)]private ?string $civility = null;#[ORM\Column(length: 100, nullable: true)]private ?string $position = null;#[ORM\Column(length: 60, nullable: true)]private ?string $tel = null;#[ORM\ManyToOne(targetEntity: Customer::class, cascade: ["remove","persist"], inversedBy: "trainee")]private ?Customer $customer = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $dateAdd = null;public function getId(): ?int{return $this->id;}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): self{$this->email = $email;return $this;}public function getUserIdentifier(): string{return (string) $this->id;}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;}public function getCivility(): ?string{return $this->civility;}public function setCivility(?string $civility): self{$this->civility = $civility;return $this;}public function getPosition(): ?string{return $this->position;}public function setPosition(?string $position): self{$this->position = $position;return $this;}public function getTel(): ?string{return $this->tel;}public function setTel(?string $tel): self{$this->tel = $tel;return $this;}// getter and setter methodspublic function getCustomer(): ?Customer{return $this->customer;}public function setCustomer(Customer $customer): self{$this->customer = $customer;return $this;}public function removeCustomer(Customer $customer): self{$this->customer = null;return $this;}}