<?php
namespace App\Entity;
use App\Repository\ReportRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ReportRepository::class)
*/
class Report
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=150)
*/
private $type;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $remarque;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $createdAt;
/**
* @ORM\Column(type="string", length=10)
*/
private $target;
/**
* @ORM\ManyToOne(targetEntity=Society::class, inversedBy="reports")
* @ORM\JoinColumn(name="society_id", referencedColumnName="id", nullable=true)
*/
private $society;
/**
* @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="reports")
* @ORM\JoinColumn(name="profile_id", referencedColumnName="id", nullable=true)
*/
private $profile;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="reports")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getRemarque(): ?string
{
return $this->remarque;
}
public function setRemarque(?string $remarque): self
{
$this->remarque = $remarque;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getTarget(): ?string
{
return $this->target;
}
public function setTarget(string $target): self
{
$this->target = $target;
return $this;
}
public function getSociety(): ?Society
{
return $this->society;
}
public function getProfile(): ?Profile
{
return $this->profile;
}
public function setSociety(?Society $society): self
{
$this->society = $society;
return $this;
}
public function setProfile(?Profile $profile): self
{
$this->profile = $profile;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}