<?php
namespace App\Entity\Survey;
use App\Entity\PrimaryIdTrait;
use App\Entity\User\User;
use App\Repository\Survey\SurveyResultRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: SurveyNotificationRepository::class)]
class SurveyNotification
{
use PrimaryIdTrait;
use TimestampableEntity;
/**
* @var Survey
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\Survey\Survey', inversedBy: 'surveyNotification')]
private $survey;
/**
* @var User
*/
#[ORM\ManyToOne(targetEntity: 'App\Entity\User\User', inversedBy: 'surveyNotification')]
private $user;
/**
* @return Survey
*/
public function getSurvey(): ?Survey
{
return $this->survey;
}
/**
* @param Survey $survey
*/
public function setSurvey(Survey $survey): void
{
$this->survey = $survey;
}
/**
* @return User
*/
public function getUser(): ?User
{
return $this->user;
}
/**
* @param User $survey
*/
public function setUser(User $user): void
{
$this->user = $user;
}
}