<?phpnamespace App\Entity;use App\Repository\ProjectAIReportsRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=ProjectAIReportsRepository::class) */class ProjectAIReports{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Groups({ * "project_ai_report@core" * }) */ private $id; /** * @ORM\ManyToOne(targetEntity=Projects::class, inversedBy="project_ai_reports") * @ORM\JoinColumn(nullable=false) * @Groups({ * "project_ai_report@core" * }) */ private $project; /** * @ORM\Column(type="text", nullable=true) * @Groups({ * "project_ai_report@core" * }) */ private $report; /** * @ORM\Column(type="json", nullable=true) * @Groups({ * "project_ai_report@core" * }) */ private $metrics = []; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="project_ai_reports") * @ORM\JoinColumn(nullable=false) * @Groups({ * "project_ai_report@core" * }) */ private $analyse_by; /** * @ORM\Column(type="datetime_immutable") * @Groups({ * "project_ai_report@core" * }) */ private $created_at; public function getId(): ?int { return $this->id; } public function getProject(): ?Projects { return $this->project; } public function setProject(?Projects $project): self { $this->project = $project; return $this; } public function getReport(): ?string { return $this->report; } public function setReport(?string $report): self { $this->report = $report; return $this; } public function getMetrics(): ?array { return $this->metrics; } public function setMetrics(?array $metrics): self { $this->metrics = $metrics; return $this; } public function getAnalyseBy(): ?User { return $this->analyse_by; } public function setAnalyseBy(?User $analyse_by): self { $this->analyse_by = $analyse_by; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->created_at; } public function setCreatedAt(\DateTimeImmutable $created_at): self { $this->created_at = $created_at; return $this; }}