chill-bundles/Entity/Embeddable/CommentEmbeddable.php
2021-03-11 12:35:13 +01:00

80 lines
1.3 KiB
PHP

<?php
namespace Chill\MainBundle\Entity\Embeddable;
use Chill\MainBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Embeddable()
*/
class CommentEmbeddable
{
/**
* @var string
* @ORM\Column(type="text", nullable=true)
*/
private $comment;
/**
* Embeddable does not support associations
* @var integer
* @ORM\Column(type="integer", nullable=true)
*/
private $userId;
/**
* @var \DateTime
* @ORM\Column(type="datetime", nullable=true)
*/
private $date;
/**
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* @param string $comment
*/
public function setComment(?string $comment)
{
$this->comment = $comment;
}
/**
* @return interger $userId
*/
public function getUserId()
{
return $this->userId;
}
/**
* @param integer $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* @param \DateTime $date
*/
public function setDate(?\DateTime $date)
{
$this->date = $date;
}
}