<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* WidgetNotes
*
* @ORM\Table(name="widget_notes")
* @ORM\Entity(repositoryClass="App\Repository\WidgetNotesRepository")
* @ORM\HasLifecycleCallbacks()
*/
class WidgetNotes
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var \DateTime
*
* @ORM\Column(name="date_at", type="datetime")
*/
private $dateAt;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="message", type="string", length=255)
*/
private $message;
/**
* @var string
*
* @ORM\Column(name="for_agent", type="string", length=255, nullable=true)
*/
private $forAgent;
/**
*
* @ORM\Column(name="audience", type="boolean", nullable=true)
*/
private $audience;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer", nullable=true)
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer", nullable=true)
*/
private $updatedId;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set dateAt
*
* @param \DateTime $dateAt
*
* @return WidgetNotes
*/
public function setDateAt($dateAt)
{
$this->dateAt = $dateAt;
return $this;
}
/**
* Get dateAt
*
* @return \DateTime
*/
public function getDateAt()
{
return $this->dateAt;
}
/**
* Set title
*
* @param string $title
*
* @return WidgetNotes
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set message
*
* @param string $message
*
* @return WidgetNotes
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Get message
*
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return WidgetNotes
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return WidgetNotes
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return WidgetNotes
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return WidgetNotes
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set audience
*
* @param boolean $audience
*
* @return WidgetNotes
*/
public function setAudience($audience)
{
$this->audience = $audience;
return $this;
}
/**
* Get audience
*
* @return boolean
*/
public function getAudience()
{
return $this->audience;
}
/**
* Set forAgent
*
* @param string $forAgent
*
* @return WidgetNotes
*/
public function setForAgent($forAgent)
{
$this->forAgent = $forAgent;
return $this;
}
/**
* Get forAgent
*
* @return string
*/
public function getForAgent()
{
return $this->forAgent;
}
}