<?php
namespace App\Entity;
use App\Repository\UserRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserRepository::class)]
class User
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\Column(nullable: true)]
private ?int $teacher = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $otp = null;
#[ORM\Column]
private ?float $age = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): static
{
$this->email = $email;
return $this;
}
public function getTeacher(): ?int
{
return $this->teacher;
}
public function setTeacher(?int $teacher): static
{
$this->teacher = $teacher;
return $this;
}
public function getOtp(): ?string
{
return $this->otp;
}
public function setOtp(?string $otp): static
{
$this->otp = $otp;
return $this;
}
public function getAge(): ?float
{
return $this->age;
}
public function setAge(float $age): static
{
$this->age = $age;
return $this;
}
}