<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* FavouriteMenus
*
* @ORM\Table(name="favourite_menus")
* @ORM\Entity(repositoryClass="App\Repository\FavouriteMenusRepository")
*/
class FavouriteMenus
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="menu_id", type="integer", nullable=false, options={"unsigned":true})
* @Groups("data_export")
*/
private $menuId;
/**
* @var int
*
* @ORM\Column(name="user_id", type="integer")
* @ORM\ManyToOne(targetEntity="App\Entity\Users")
* @ORM\JoinColumn(onDelete="CASCADE")
*/
private $userId;
/**
* @var int
*
* @ORM\Column(name="session_id", type="integer", nullable=true)
* @Groups("data_export")
*/
private $sessionId;
/**
* @var \DateTime
*
* @ORM\Column(name="added_at", type="datetime")
* @Groups("data_export")
*/
private $addedAt;
/**
* @var \DateTime
*
* @ORM\Column(name="planned_notification", type="date", nullable=true)
* @Groups("data_export")
*/
private $plannedNotification;
/**
* @var \DateTime
*
* @ORM\Column(name="notified_at", type="datetime", nullable=true)
* @Groups("data_export")
*/
private $notifiedAt;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set menuId
*
* @param integer $menuId
*
* @return FavouriteMenus
*/
public function setMenuId($menuId)
{
$this->menuId = $menuId;
return $this;
}
/**
* Get menuId
*
* @return int
*/
public function getMenuId()
{
return $this->menuId;
}
/**
* Set userId
*
* @param integer $userId
*
* @return FavouriteMenus
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId
*
* @return int
*/
public function getUserId()
{
return $this->userId;
}
/**
* @return int
*/
public function getSessionId()
{
return $this->sessionId;
}
/**
* @param int $sessionId
*/
public function setSessionId($sessionId)
{
$this->sessionId = $sessionId;
}
/**
* Set addedAt
*
* @param \DateTime $addedAt
*
* @return FavouriteMenus
*/
public function setAddedAt($addedAt)
{
$this->addedAt = $addedAt;
return $this;
}
/**
* Get addedAt
*
* @return \DateTime
*/
public function getAddedAt()
{
return $this->addedAt;
}
/**
* @return \DateTime
*/
public function getNotifiedAt()
{
return $this->notifiedAt;
}
/**
* @param \DateTime $notifiedAt
*/
public function setNotifiedAt($notifiedAt)
{
$this->notifiedAt = $notifiedAt;
}
/**
* @return \DateTime
*/
public function getPlannedNotification()
{
return $this->plannedNotification;
}
/**
* @param \DateTime $plannedNotification
*/
public function setPlannedNotification($plannedNotification)
{
$this->plannedNotification = $plannedNotification;
}
}