<?php
namespace App\Entity;
use App\Repository\ModuleNoticeRepository;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity(repositoryClass=ModuleNoticeRepository::class)
* @Serializer\ExclusionPolicy("ALL")
*/
class ModuleNotice extends BaseEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Module::class, inversedBy="moduleNotices")
*/
private $module;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $liked;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $likedAt;
/**
* @ORM\Column(type="integer", nullable=true)
* @Serializer\Expose
*/
private $note;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $notedAt;
/**
* @ORM\Column(type="text", nullable=true)
* @Serializer\Expose
*/
private $comment;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $commentedAt;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isAnonymous;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isPublished = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isGeneral;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Serializer\Expose
*/
private $source;
public function getId(): ?int
{
return $this->id;
}
public function getModule(): ?Module
{
return $this->module;
}
public function setModule(?Module $module): self
{
$this->module = $module;
return $this;
}
public function isLiked(): ?bool
{
return $this->liked;
}
public function setLiked(?bool $liked): self
{
$this->liked = $liked;
return $this;
}
public function getLikedAt(): ?\DateTimeInterface
{
return $this->likedAt;
}
public function setLikedAt(?\DateTimeInterface $likedAt): self
{
$this->likedAt = $likedAt;
return $this;
}
public function getNote(): ?int
{
return $this->note;
}
public function setNote(?int $note): self
{
$this->note = $note;
return $this;
}
public function getNotedAt(): ?\DateTimeInterface
{
return $this->notedAt;
}
public function setNotedAt(?\DateTimeInterface $notedAt): self
{
$this->notedAt = $notedAt;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getCommentedAt(): ?\DateTimeInterface
{
return $this->commentedAt;
}
public function setCommentedAt(?\DateTimeInterface $commentedAt): self
{
$this->commentedAt = $commentedAt;
return $this;
}
public function isIsAnonymous(): ?bool
{
return $this->isAnonymous;
}
public function setIsAnonymous(?bool $isAnonymous): self
{
$this->isAnonymous = $isAnonymous;
return $this;
}
public function isIsPublished(): ?bool
{
return $this->isPublished;
}
public function setIsPublished(?bool $isPublished): self
{
$this->isPublished = $isPublished;
return $this;
}
public function isIsGeneral(): ?bool
{
return $this->isGeneral;
}
public function setIsGeneral(?bool $isGeneral): self
{
$this->isGeneral = $isGeneral;
return $this;
}
public function getSource(): ?string
{
return $this->source;
}
public function setSource(?string $source): self
{
$this->source = $source;
return $this;
}
}