<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
class SupportRequest
{
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
#[ORM\Column(type: 'text', nullable: true)]
private $text;
#[ORM\Column(type: 'string', nullable: true)]
private $app_version;
#[ORM\Column(type: 'datetime', nullable: false)]
private $date_created;
#[ORM\ManyToOne(targetEntity: 'App\Entity\User', inversedBy: 'supportRequest')]
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', nullable: false)]
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(?string $text): self
{
$this->text = $text;
return $this;
}
public function getAppVersion(): ?string
{
return $this->app_version;
}
public function setAppVersion(?string $app_version): self
{
$this->app_version = $app_version;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->date_created;
}
public function setDateCreated(\DateTimeInterface $date_created): self
{
$this->date_created = $date_created;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}