<?php
namespace App\Entity;
use App\Repository\NpsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NpsRepository::class)]
class Nps
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'nps')]
#[ORM\JoinColumn(nullable: true)]
private $user;
#[ORM\Column(type: 'integer')]
private $score;
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
#[ORM\Column(type: 'text', nullable: true)]
private $feedback;
#[ORM\Column(type: 'string', length: 20, nullable: true)]
private $app_version;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getScore(): ?int
{
return $this->score;
}
public function setScore(int $score): self
{
$this->score = $score;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getFeedback(): ?string
{
return $this->feedback;
}
public function setFeedback(?string $feedback): self
{
$this->feedback = $feedback;
return $this;
}
public function getAppVersion(): ?string
{
return $this->app_version;
}
public function setAppVersion(?string $app_version): self
{
$this->app_version = $app_version;
return $this;
}
}