<?php
namespace App\Entity;
use App\Repository\FeedbacksRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Entity(repositoryClass=FeedbacksRepository::class)
*/
class Feedbacks
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
* @Groups("data_export")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Users::class, inversedBy="feedbacks")
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $user;
/**
* @ORM\Column(type="integer")
* @Groups("data_export")
*/
private $rating;
/**
* @ORM\Column(type="text")
* @Groups("data_export")
*/
private $feedback_message;
/**
* @ORM\Column(type="datetime_immutable")
* @Groups("data_export")
*/
private $created_at;
/**
* @ORM\Column(type="datetime_immutable", nullable=true)
* @Groups("data_export")
*/
private $deleted_at;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?Users
{
return $this->user;
}
public function setUser(?Users $user): self
{
$this->user = $user;
return $this;
}
public function getRating(): ?int
{
return $this->rating;
}
public function setRating(int $rating): self
{
$this->rating = $rating;
return $this;
}
public function getFeedbackMessage(): ?string
{
return $this->feedback_message;
}
public function setFeedbackMessage(string $feedback_message): self
{
$this->feedback_message = $feedback_message;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeImmutable $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getDeletedAt(): ?\DateTimeImmutable
{
return $this->deleted_at;
}
public function setDeletedAt(?\DateTimeImmutable $deleted_at): self
{
$this->deleted_at = $deleted_at;
return $this;
}
}