<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ToDoLogs
*
* @ORM\Table(name="to_do_logs")
* @ORM\Entity(repositoryClass="App\Repository\ToDoLogsRepository")
* @ORM\HasLifecycleCallbacks()
*/
class ToDoLogs
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="message", type="string", length=255)
*/
private $message;
/**
* @var bool
*
* @ORM\Column(name="readed", type="boolean")
*/
private $readed;
/**
* @var int
*
* @ORM\Column(name="todo_id", type="integer")
*/
private $todoId;
/**
* @var int
*
* @ORM\Column(name="ownerToDoLog", type="integer")
*/
private $ownerToDoLog;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="createdid", type="integer", nullable=true)
*/
private $createdId;
/**
* @var finished
*
* @ORM\Column(name="finished", type="integer")
*/
private $finished = 0;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set message
*
* @param string $message
*
* @return ToDoLogs
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Get message
*
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Set readed
*
* @param boolean $readed
*
* @return ToDoLogs
*/
public function setReaded($readed)
{
$this->readed = $readed;
return $this;
}
/**
* Get readed
*
* @return bool
*/
public function getReaded()
{
return $this->readed;
}
/**
* Set todoId
*
* @param integer $todoId
*
* @return ToDoLogs
*/
public function setTodoId($todoId)
{
$this->todoId = $todoId;
return $this;
}
/**
* Get todoId
*
* @return int
*/
public function getTodoId()
{
return $this->todoId;
}
/**
* Set ownerToDo
*
* @param integer $ownerToDoLog
*
* @return ToDoLogs
*/
public function setOwnerToDoLog($ownerToDoLog)
{
$this->ownerToDoLog = $ownerToDoLog;
return $this;
}
/**
* Get ownerToDoLog
*
* @return int
*/
public function getOwnerToDoLog()
{
return $this->ownerToDoLog;
}
/**
* Set title
*
* @param string $title
*
* @return ToDoLogs
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return ToDoLogs
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return ToDoLogs
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* Set finished
*
* @param integer $finished
*
* @return $this
*/
public function setFinished($finished)
{
$this->finished = $finished;
return $this;
}
/**
* Get finished
*
* @return integer
*/
public function getFinished()
{
return $this->finished;
}
}