<?phpnamespace App\Entity;use App\Repository\TeacherPublicProfileRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=TeacherPublicProfileRepository::class) */class TeacherPublicProfile{ const STATUS_IN_REVIEW = 0; const STATUS_REJECTED = 1; const STATUS_CONFIRMED = 2; const STATUS_DELETED = 3; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private int $id; /** * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherPublicProfiles") */ private $teacher; /** * @ORM\Column(type="string", length=300) */ private string $photoPath; /** * @ORM\Column(type="boolean") */ private bool $allowAIEdit; /** * @ORM\Column(type="integer") */ private int $status; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime") */ private $updatedAt; /** * @ORM\Column(type="text") */ private string $description; /** * @ORM\Column(type="text", nullable=true) */ private ?string $comment = null; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): int { return $this->id; } public function setId(int $id): void { $this->id = $id; } /** * @return mixed */ public function getTeacher() { return $this->teacher; } /** * @param mixed $teacher */ public function setTeacher($teacher): void { $this->teacher = $teacher; } public function getPhotoPath(): string { return $this->photoPath; } public function setPhotoPath(string $photoPath): void { $this->photoPath = $photoPath; } public function isAllowAIEdit(): bool { return $this->allowAIEdit; } public function setAllowAIEdit(bool $allowAIEdit): void { $this->allowAIEdit = $allowAIEdit; } public function getStatus(): int { return $this->status; } public function setStatus(int $status): void { $this->status = $status; } public function getCreatedAt(): \DateTime { return $this->createdAt; } public function setCreatedAt(\DateTime $createdAt): void { $this->createdAt = $createdAt; } /** * @return mixed */ public function getUpdatedAt() { return $this->updatedAt; } /** * @param mixed $updatedAt */ public function setUpdatedAt($updatedAt): void { $this->updatedAt = $updatedAt; } public function getDescription(): string { return $this->description; } public function setDescription(string $description): void { $this->description = $description; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): void { $this->comment = $comment; }}