src/Entity/Objectives.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.  * Objectives
  7.  *
  8.  * @ORM\Table(name="objectives")
  9.  * @ORM\Entity(repositoryClass="App\Repository\ObjectivesRepository")
  10.  */
  11. class Objectives
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      * @Groups("data_export")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var int
  24.      *
  25.      * @ORM\Column(name="user_id", type="integer")
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Users")
  27.      * @ORM\JoinColumn(onDelete="CASCADE")
  28.      */
  29.     private $userId;
  30.     /**
  31.      * @var int
  32.      *
  33.      * @ORM\Column(name="weight", type="smallint")
  34.      * @Groups("data_export")
  35.      */
  36.     private $weight;
  37.     /**
  38.      * @var int
  39.      *
  40.      * @ORM\Column(name="objective_weight", type="smallint")
  41.      * @Groups("data_export")
  42.      */
  43.     private $objectiveWeight;
  44.     /**
  45.      * @var ?\DateTime
  46.      *
  47.      * @ORM\Column(name="last_notification", type="date")
  48.      */
  49.     private $lastNotification;
  50.     /**
  51.      * @var \DateTime
  52.      *
  53.      * @ORM\Column(name="next_notification", type="date", nullable=True)
  54.      * @Groups("data_export")
  55.      */
  56.     private $nextNotification;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="notification_category", type="string", length=255, nullable=true)
  61.      * @Groups("data_export")
  62.      */
  63.     private $notificationCategory;
  64.     /**
  65.      * @var int
  66.      *
  67.      * @ORM\Column(name="next_notification_weight", type="smallint")
  68.      * @Groups("data_export")
  69.      */
  70.     private $nextNotificationWeight;
  71.     /**
  72.      * @var int
  73.      *
  74.      * @ORM\Column(name="notifications", type="smallint")
  75.      */
  76.     private $notifications;
  77.     /**
  78.      * @var int
  79.      *
  80.      * @ORM\Column(name="notifications_sent", type="smallint")
  81.      * @Groups("data_export")
  82.      */
  83.     private $notificationsSent;
  84.     /**
  85.      * @var \DateTime
  86.      *
  87.      * @ORM\Column(name="created_at", type="datetime")
  88.      * @Groups("data_export")
  89.      */
  90.     private $createdAt;
  91.     /**
  92.      * @var \DateTime
  93.      *
  94.      * @ORM\Column(name="cancelled_at", type="datetime", nullable=true)
  95.      * @Groups("data_export")
  96.      */
  97.     private $cancelledAt;
  98.     /**
  99.      * Get id
  100.      *
  101.      * @return int
  102.      */
  103.     public function getId()
  104.     {
  105.         return $this->id;
  106.     }
  107.     /**
  108.      * Set userId
  109.      *
  110.      * @param integer $userId
  111.      *
  112.      * @return Objectives
  113.      */
  114.     public function setUserId($userId)
  115.     {
  116.         $this->userId $userId;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get userId
  121.      *
  122.      * @return int
  123.      */
  124.     public function getUserId()
  125.     {
  126.         return $this->userId;
  127.     }
  128.     /**
  129.      * Set weight
  130.      *
  131.      * @param integer $weight
  132.      *
  133.      * @return Objectives
  134.      */
  135.     public function setWeight($weight)
  136.     {
  137.         $this->weight $weight;
  138.         return $this;
  139.     }
  140.     /**
  141.      * Get weight
  142.      *
  143.      * @return int
  144.      */
  145.     public function getWeight()
  146.     {
  147.         return $this->weight;
  148.     }
  149.     /**
  150.      * Set objectiveWeight
  151.      *
  152.      * @param integer $objectiveWeight
  153.      *
  154.      * @return Objectives
  155.      */
  156.     public function setObjectiveWeight($objectiveWeight)
  157.     {
  158.         $this->objectiveWeight $objectiveWeight;
  159.         return $this;
  160.     }
  161.     /**
  162.      * Get objectiveWeight
  163.      *
  164.      * @return int
  165.      */
  166.     public function getObjectiveWeight()
  167.     {
  168.         return $this->objectiveWeight;
  169.     }
  170.     /**
  171.      * Set lastNotification
  172.      *
  173.      * @param ?\DateTime $lastNotification
  174.      *
  175.      * @return Objectives
  176.      */
  177.     public function setLastNotification($lastNotification)
  178.     {
  179.         $this->lastNotification $lastNotification;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get lastNotification
  184.      *
  185.      * @return \DateTime
  186.      */
  187.     public function getLastNotification()
  188.     {
  189.         return $this->lastNotification;
  190.     }
  191.     /**
  192.      * Set nextNotification
  193.      *
  194.      * @param \DateTime $nextNotification
  195.      *
  196.      * @return Objectives
  197.      */
  198.     public function setNextNotification($nextNotification)
  199.     {
  200.         $this->nextNotification $nextNotification;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get nextNotification
  205.      *
  206.      * @return \DateTime
  207.      */
  208.     public function getNextNotification()
  209.     {
  210.         return $this->nextNotification;
  211.     }
  212.     /**
  213.      * @return string
  214.      */
  215.     public function getNotificationCategory()
  216.     {
  217.         return $this->notificationCategory;
  218.     }
  219.     /**
  220.      * @param string $notificationCategory
  221.      */
  222.     public function setNotificationCategory($notificationCategory)
  223.     {
  224.         $this->notificationCategory $notificationCategory;
  225.     }
  226.     /**
  227.      * Set nextNotificationWeight
  228.      *
  229.      * @param integer $nextNotificationWeight
  230.      *
  231.      * @return Objectives
  232.      */
  233.     public function setNextNotificationWeight($nextNotificationWeight)
  234.     {
  235.         $this->nextNotificationWeight $nextNotificationWeight;
  236.         return $this;
  237.     }
  238.     /**
  239.      * Get nextNotificationWeight
  240.      *
  241.      * @return int
  242.      */
  243.     public function getNextNotificationWeight()
  244.     {
  245.         return $this->nextNotificationWeight;
  246.     }
  247.     /**
  248.      * @return int
  249.      */
  250.     public function getNotifications()
  251.     {
  252.         return $this->notifications;
  253.     }
  254.     /**
  255.      * @param int $notifications
  256.      */
  257.     public function setNotifications($notifications)
  258.     {
  259.         $this->notifications $notifications;
  260.     }
  261.     /**
  262.      * @return int
  263.      */
  264.     public function getNotificationsSent()
  265.     {
  266.         return $this->notificationsSent;
  267.     }
  268.     /**
  269.      * @param int $notificationsSent
  270.      */
  271.     public function setNotificationsSent($notificationsSent)
  272.     {
  273.         $this->notificationsSent $notificationsSent;
  274.     }
  275.     /**
  276.      * Set createdAt
  277.      *
  278.      * @param \DateTime $createdAt
  279.      *
  280.      * @return Objectives
  281.      */
  282.     public function setCreatedAt($createdAt)
  283.     {
  284.         $this->createdAt $createdAt;
  285.         return $this;
  286.     }
  287.     /**
  288.      * Get createdAt
  289.      *
  290.      * @return \DateTime
  291.      */
  292.     public function getCreatedAt()
  293.     {
  294.         return $this->createdAt;
  295.     }
  296.     /**
  297.      * Set cancelledAt
  298.      *
  299.      * @param ?\DateTime $cancelledAt
  300.      *
  301.      * @return Objectives
  302.      */
  303.     public function setCancelledAt($cancelledAt)
  304.     {
  305.         $this->cancelledAt $cancelledAt;
  306.         return $this;
  307.     }
  308.     /**
  309.      * Get cancelledAt
  310.      *
  311.      * @return \DateTime
  312.      */
  313.     public function getCancelledAt()
  314.     {
  315.         return $this->cancelledAt;
  316.     }
  317. }