src/Entity/Request/RequestDetails.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Request;
  3. use App\Entity\Configuration\ValueInSurvey;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. use App\Repository\Request\RequestDetailsRepository;
  8. #[ORM\Entity(repositoryClassRequestDetailsRepository::class)]
  9. class RequestDetails
  10. {
  11.     use TimestampableEntity;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  17.     private ?\DateTimeInterface $deletedAt null;
  18.     #[ORM\ManyToOne(inversedBy'requestDetails')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?RequestForm $requestForm null;
  21.     #[ORM\ManyToOne(inversedBy'requestDetails')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?ValueInSurvey $valueInSurvey null;
  24.     public function __construct()
  25.     {
  26.         $this->createdAt = new \DateTime();
  27.         $this->updatedAt = new \DateTime();
  28.     }
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getDeletedAt(): ?\DateTimeInterface
  34.     {
  35.         return $this->deletedAt;
  36.     }
  37.     public function setDeletedAt(?\DateTimeInterface $deletedAt): self
  38.     {
  39.         $this->deletedAt $deletedAt;
  40.         return $this;
  41.     }
  42.     public function getRequestForm(): ?RequestForm
  43.     {
  44.         return $this->requestForm;
  45.     }
  46.     public function setRequestForm(?RequestForm $requestForm): self
  47.     {
  48.         $this->requestForm $requestForm;
  49.         return $this;
  50.     }
  51.     public function getValueInSurvey(): ?ValueInSurvey
  52.     {
  53.         return $this->valueInSurvey;
  54.     }
  55.     public function setValueInSurvey(?ValueInSurvey $valueInSurvey): self
  56.     {
  57.         $this->valueInSurvey $valueInSurvey;
  58.         return $this;
  59.     }
  60.  
  61. }