src/Entity/Report.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReportRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ReportRepository::class)
  8.  */
  9. class Report
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=150)
  19.      */
  20.     private $type;
  21.     /**
  22.      * @ORM\Column(type="text", nullable=true)
  23.      */
  24.     private $remarque;
  25.     /**
  26.      * @ORM\Column(type="datetime_immutable")
  27.      */
  28.     private $createdAt;
  29.     /**
  30.      * @ORM\Column(type="string", length=10)
  31.      */
  32.     private $target;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Society::class, inversedBy="reports")
  35.      * @ORM\JoinColumn(name="society_id", referencedColumnName="id", nullable=true)
  36.      */
  37.     private $society;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="reports")
  40.      * @ORM\JoinColumn(name="profile_id", referencedColumnName="id", nullable=true)
  41.      */
  42.     private $profile;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="reports")
  45.      * @ORM\JoinColumn(nullable=false)
  46.      */
  47.     private $user;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getType(): ?string
  53.     {
  54.         return $this->type;
  55.     }
  56.     public function setType(string $type): self
  57.     {
  58.         $this->type $type;
  59.         return $this;
  60.     }
  61.     public function getRemarque(): ?string
  62.     {
  63.         return $this->remarque;
  64.     }
  65.     public function setRemarque(?string $remarque): self
  66.     {
  67.         $this->remarque $remarque;
  68.         return $this;
  69.     }
  70.     public function getCreatedAt(): ?\DateTimeImmutable
  71.     {
  72.         return $this->createdAt;
  73.     }
  74.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  75.     {
  76.         $this->createdAt $createdAt;
  77.         return $this;
  78.     }
  79.     public function getTarget(): ?string
  80.     {
  81.         return $this->target;
  82.     }
  83.     public function setTarget(string $target): self
  84.     {
  85.         $this->target $target;
  86.         return $this;
  87.     }
  88.     public function getSociety(): ?Society
  89.     {
  90.         return $this->society;
  91.     }
  92.     public function getProfile(): ?Profile
  93.     {
  94.         return $this->profile;
  95.     }
  96.     public function setSociety(?Society $society): self
  97.     {
  98.         $this->society $society;
  99.         return $this;
  100.     }
  101.     public function setProfile(?Profile $profile): self
  102.     {
  103.         $this->profile $profile;
  104.         return $this;
  105.     }
  106.     public function getUser(): ?User
  107.     {
  108.         return $this->user;
  109.     }
  110.     public function setUser(?User $user): self
  111.     {
  112.         $this->user $user;
  113.         return $this;
  114.     }
  115. }