id; } /** * Set title * * @param string $title * @return Entries */ public function setTitle($title) { $this->title = $title; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * Set url * * @param string $url * @return Entries */ public function setUrl($url) { $this->url = $url; return $this; } /** * Get url * * @return string */ public function getUrl() { return $this->url; } /** * Set isRead * * @param string $isRead * @return Entries */ public function setRead($isRead) { $this->isRead = $isRead; return $this; } /** * Get isRead * * @return string */ public function isRead() { return $this->isRead; } public function toggleArchive() { $this->isRead = $this->getIsRead() ^ 1; return $this; } /** * Set isFav * * @param string $isFav * @return Entries */ public function setFav($isFav) { $this->isFav = $isFav; return $this; } /** * Get isFav * * @return string */ public function isFav() { return $this->isFav; } public function toggleStar() { $this->isFav = $this->getIsFav() ^ 1; return $this; } /** * Set content * * @param string $content * @return Entries */ public function setContent($content) { $this->content = $content; return $this; } /** * Get content * * @return string */ public function getContent() { return $this->content; } /** * Set userId * * @param string $userId * @return Entries */ public function setUserId($userId) { $this->userId = $userId; return $this; } /** * Get userId * * @return string */ public function getUserId() { return $this->userId; } /** * @return string */ public function isDeleted() { return $this->isDeleted; } /** * @param string $isDeleted */ public function setDeleted($isDeleted) { $this->isDeleted = $isDeleted; } /** * @return mixed */ public function getCreatedAt() { return $this->createdAt; } /** * @param mixed $createdAt * @ORM\PrePersist */ public function setCreatedAt() { $this->createdAt = new \DateTime(); } /** * @return string */ public function getUpdatedAt() { return $this->updatedAt; } /** * @param string $updatedAt * @ORM\PreUpdate */ public function setUpdatedAt() { $this->updatedAt = new \DateTime(); } /** * @return string */ public function getComments() { return $this->comments; } /** * @param string $comments */ public function setComments($comments) { $this->comments = $comments; } /** * @return string */ public function getMimetype() { return $this->mimetype; } /** * @param string $mimetype */ public function setMimetype($mimetype) { $this->mimetype = $mimetype; } /** * @return int */ public function getReadingTime() { return $this->readingTime; } /** * @param int $readingTime */ public function setReadingTime($readingTime) { $this->readingTime = $readingTime; } /** * @return string */ public function getDomainName() { return $this->domainName; } /** * @param string $domainName */ public function setDomainName($domainName) { $this->domainName = $domainName; } /** * @return boolean */ public function isPublic() { return $this->isPublic; } /** * @param boolean $isPublic */ public function setPublic($isPublic) { $this->isPublic = $isPublic; } }