src/Entity/ProjectAIReports.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectAIReportsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProjectAIReportsRepository::class)
  8.  */
  9. class ProjectAIReports
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *      "project_ai_report@core"
  17.      *  })
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Projects::class, inversedBy="project_ai_reports")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      * @Groups({
  24.      *       "project_ai_report@core"
  25.      *   })
  26.      */
  27.     private $project;
  28.     /**
  29.      * @ORM\Column(type="text", nullable=true)
  30.      * @Groups({
  31.      *       "project_ai_report@core"
  32.      *   })
  33.      */
  34.     private $report;
  35.     /**
  36.      * @ORM\Column(type="json", nullable=true)
  37.      * @Groups({
  38.      *       "project_ai_report@core"
  39.      *   })
  40.      */
  41.     private $metrics = [];
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="project_ai_reports")
  44.      * @ORM\JoinColumn(nullable=false)
  45.      * @Groups({
  46.      *       "project_ai_report@core"
  47.      *   })
  48.      */
  49.     private $analyse_by;
  50.     /**
  51.      * @ORM\Column(type="datetime_immutable")
  52.      * @Groups({
  53.      *       "project_ai_report@core"
  54.      *   })
  55.      */
  56.     private $created_at;
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getProject(): ?Projects
  62.     {
  63.         return $this->project;
  64.     }
  65.     public function setProject(?Projects $project): self
  66.     {
  67.         $this->project $project;
  68.         return $this;
  69.     }
  70.     public function getReport(): ?string
  71.     {
  72.         return $this->report;
  73.     }
  74.     public function setReport(?string $report): self
  75.     {
  76.         $this->report $report;
  77.         return $this;
  78.     }
  79.     public function getMetrics(): ?array
  80.     {
  81.         return $this->metrics;
  82.     }
  83.     public function setMetrics(?array $metrics): self
  84.     {
  85.         $this->metrics $metrics;
  86.         return $this;
  87.     }
  88.     public function getAnalyseBy(): ?User
  89.     {
  90.         return $this->analyse_by;
  91.     }
  92.     public function setAnalyseBy(?User $analyse_by): self
  93.     {
  94.         $this->analyse_by $analyse_by;
  95.         return $this;
  96.     }
  97.     public function getCreatedAt(): ?\DateTimeImmutable
  98.     {
  99.         return $this->created_at;
  100.     }
  101.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  102.     {
  103.         $this->created_at $created_at;
  104.         return $this;
  105.     }
  106. }