<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Objectives
*
* @ORM\Table(name="objectives")
* @ORM\Entity(repositoryClass="App\Repository\ObjectivesRepository")
*/
class Objectives
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @Groups("data_export")
*/
private $id;
/**
* @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="weight", type="smallint")
* @Groups("data_export")
*/
private $weight;
/**
* @var int
*
* @ORM\Column(name="objective_weight", type="smallint")
* @Groups("data_export")
*/
private $objectiveWeight;
/**
* @var ?\DateTime
*
* @ORM\Column(name="last_notification", type="date")
*/
private $lastNotification;
/**
* @var \DateTime
*
* @ORM\Column(name="next_notification", type="date", nullable=True)
* @Groups("data_export")
*/
private $nextNotification;
/**
* @var string
*
* @ORM\Column(name="notification_category", type="string", length=255, nullable=true)
* @Groups("data_export")
*/
private $notificationCategory;
/**
* @var int
*
* @ORM\Column(name="next_notification_weight", type="smallint")
* @Groups("data_export")
*/
private $nextNotificationWeight;
/**
* @var int
*
* @ORM\Column(name="notifications", type="smallint")
*/
private $notifications;
/**
* @var int
*
* @ORM\Column(name="notifications_sent", type="smallint")
* @Groups("data_export")
*/
private $notificationsSent;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
* @Groups("data_export")
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="cancelled_at", type="datetime", nullable=true)
* @Groups("data_export")
*/
private $cancelledAt;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set userId
*
* @param integer $userId
*
* @return Objectives
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
/**
* Get userId
*
* @return int
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set weight
*
* @param integer $weight
*
* @return Objectives
*/
public function setWeight($weight)
{
$this->weight = $weight;
return $this;
}
/**
* Get weight
*
* @return int
*/
public function getWeight()
{
return $this->weight;
}
/**
* Set objectiveWeight
*
* @param integer $objectiveWeight
*
* @return Objectives
*/
public function setObjectiveWeight($objectiveWeight)
{
$this->objectiveWeight = $objectiveWeight;
return $this;
}
/**
* Get objectiveWeight
*
* @return int
*/
public function getObjectiveWeight()
{
return $this->objectiveWeight;
}
/**
* Set lastNotification
*
* @param ?\DateTime $lastNotification
*
* @return Objectives
*/
public function setLastNotification($lastNotification)
{
$this->lastNotification = $lastNotification;
return $this;
}
/**
* Get lastNotification
*
* @return \DateTime
*/
public function getLastNotification()
{
return $this->lastNotification;
}
/**
* Set nextNotification
*
* @param \DateTime $nextNotification
*
* @return Objectives
*/
public function setNextNotification($nextNotification)
{
$this->nextNotification = $nextNotification;
return $this;
}
/**
* Get nextNotification
*
* @return \DateTime
*/
public function getNextNotification()
{
return $this->nextNotification;
}
/**
* @return string
*/
public function getNotificationCategory()
{
return $this->notificationCategory;
}
/**
* @param string $notificationCategory
*/
public function setNotificationCategory($notificationCategory)
{
$this->notificationCategory = $notificationCategory;
}
/**
* Set nextNotificationWeight
*
* @param integer $nextNotificationWeight
*
* @return Objectives
*/
public function setNextNotificationWeight($nextNotificationWeight)
{
$this->nextNotificationWeight = $nextNotificationWeight;
return $this;
}
/**
* Get nextNotificationWeight
*
* @return int
*/
public function getNextNotificationWeight()
{
return $this->nextNotificationWeight;
}
/**
* @return int
*/
public function getNotifications()
{
return $this->notifications;
}
/**
* @param int $notifications
*/
public function setNotifications($notifications)
{
$this->notifications = $notifications;
}
/**
* @return int
*/
public function getNotificationsSent()
{
return $this->notificationsSent;
}
/**
* @param int $notificationsSent
*/
public function setNotificationsSent($notificationsSent)
{
$this->notificationsSent = $notificationsSent;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return Objectives
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set cancelledAt
*
* @param ?\DateTime $cancelledAt
*
* @return Objectives
*/
public function setCancelledAt($cancelledAt)
{
$this->cancelledAt = $cancelledAt;
return $this;
}
/**
* Get cancelledAt
*
* @return \DateTime
*/
public function getCancelledAt()
{
return $this->cancelledAt;
}
}