src/Entity/FavouriteMenus.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Serializer\Annotation\Groups;
  5. /**
  6.  * FavouriteMenus
  7.  *
  8.  * @ORM\Table(name="favourite_menus")
  9.  * @ORM\Entity(repositoryClass="App\Repository\FavouriteMenusRepository")
  10.  */
  11. class FavouriteMenus
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned":true})
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="menu_id", type="integer", nullable=false, options={"unsigned":true})
  25.      * @Groups("data_export")
  26.      */
  27.     private $menuId;
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Column(name="user_id", type="integer")
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\Users")
  33.      * @ORM\JoinColumn(onDelete="CASCADE")
  34.      */
  35.     private $userId;
  36.     /**
  37.      * @var int
  38.      *
  39.      * @ORM\Column(name="session_id", type="integer", nullable=true)
  40.      * @Groups("data_export")
  41.      */
  42.     private $sessionId;
  43.     /**
  44.      * @var \DateTime
  45.      *
  46.      * @ORM\Column(name="added_at", type="datetime")
  47.      * @Groups("data_export")
  48.      */
  49.     private $addedAt;
  50.     /**
  51.      * @var \DateTime
  52.      *
  53.      * @ORM\Column(name="planned_notification", type="date", nullable=true)
  54.      * @Groups("data_export")
  55.      */
  56.     private $plannedNotification;
  57.     /**
  58.      * @var \DateTime
  59.      *
  60.      * @ORM\Column(name="notified_at", type="datetime", nullable=true)
  61.      * @Groups("data_export")
  62.      */
  63.     private $notifiedAt;
  64.     /**
  65.      * Get id
  66.      *
  67.      * @return int
  68.      */
  69.     public function getId()
  70.     {
  71.         return $this->id;
  72.     }
  73.     /**
  74.      * Set menuId
  75.      *
  76.      * @param integer $menuId
  77.      *
  78.      * @return FavouriteMenus
  79.      */
  80.     public function setMenuId($menuId)
  81.     {
  82.         $this->menuId $menuId;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get menuId
  87.      *
  88.      * @return int
  89.      */
  90.     public function getMenuId()
  91.     {
  92.         return $this->menuId;
  93.     }
  94.     /**
  95.      * Set userId
  96.      *
  97.      * @param integer $userId
  98.      *
  99.      * @return FavouriteMenus
  100.      */
  101.     public function setUserId($userId)
  102.     {
  103.         $this->userId $userId;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get userId
  108.      *
  109.      * @return int
  110.      */
  111.     public function getUserId()
  112.     {
  113.         return $this->userId;
  114.     }
  115.     /**
  116.      * @return int
  117.      */
  118.     public function getSessionId()
  119.     {
  120.         return $this->sessionId;
  121.     }
  122.     /**
  123.      * @param int $sessionId
  124.      */
  125.     public function setSessionId($sessionId)
  126.     {
  127.         $this->sessionId $sessionId;
  128.     }
  129.     /**
  130.      * Set addedAt
  131.      *
  132.      * @param \DateTime $addedAt
  133.      *
  134.      * @return FavouriteMenus
  135.      */
  136.     public function setAddedAt($addedAt)
  137.     {
  138.         $this->addedAt $addedAt;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get addedAt
  143.      *
  144.      * @return \DateTime
  145.      */
  146.     public function getAddedAt()
  147.     {
  148.         return $this->addedAt;
  149.     }
  150.     /**
  151.      * @return \DateTime
  152.      */
  153.     public function getNotifiedAt()
  154.     {
  155.         return $this->notifiedAt;
  156.     }
  157.     /**
  158.      * @param \DateTime $notifiedAt
  159.      */
  160.     public function setNotifiedAt($notifiedAt)
  161.     {
  162.         $this->notifiedAt $notifiedAt;
  163.     }
  164.     /**
  165.      * @return \DateTime
  166.      */
  167.     public function getPlannedNotification()
  168.     {
  169.         return $this->plannedNotification;
  170.     }
  171.     /**
  172.      * @param \DateTime $plannedNotification
  173.      */
  174.     public function setPlannedNotification($plannedNotification)
  175.     {
  176.         $this->plannedNotification $plannedNotification;
  177.     }
  178. }