<?php
namespace App\Entity\Request;
use App\Entity\Configuration\ValueInSurvey;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use App\Repository\Request\RequestDetailsRepository;
#[ORM\Entity(repositoryClass: RequestDetailsRepository::class)]
class RequestDetails
{
use TimestampableEntity;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $deletedAt = null;
#[ORM\ManyToOne(inversedBy: 'requestDetails')]
#[ORM\JoinColumn(nullable: false)]
private ?RequestForm $requestForm = null;
#[ORM\ManyToOne(inversedBy: 'requestDetails')]
#[ORM\JoinColumn(nullable: false)]
private ?ValueInSurvey $valueInSurvey = null;
public function __construct()
{
$this->createdAt = new \DateTime();
$this->updatedAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): self
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getRequestForm(): ?RequestForm
{
return $this->requestForm;
}
public function setRequestForm(?RequestForm $requestForm): self
{
$this->requestForm = $requestForm;
return $this;
}
public function getValueInSurvey(): ?ValueInSurvey
{
return $this->valueInSurvey;
}
public function setValueInSurvey(?ValueInSurvey $valueInSurvey): self
{
$this->valueInSurvey = $valueInSurvey;
return $this;
}
}