use Symfony\Component\Validator\Constraints as Assert;
use Hateoas\Configuration\Annotation as Hateoas;
use JMS\Serializer\Annotation\XmlRoot;
+use Wallabag\UserBundle\Entity\User;
/**
* Entry.
*/
private $mimetype;
+ /**
+ * @var string
+ *
+ * @ORM\Column(name="language", type="text", nullable=true)
+ */
+ private $language;
+
/**
* @var int
*
- * @ORM\Column(name="reading_type", type="integer", nullable=true)
+ * @ORM\Column(name="reading_time", type="integer", nullable=true)
*/
private $readingTime;
*/
private $domainName;
+ /**
+ * @var string
+ *
+ * @ORM\Column(name="preview_picture", type="text", nullable=true)
+ */
+ private $previewPicture;
+
/**
* @var bool
*
private $isPublic;
/**
- * @ORM\ManyToOne(targetEntity="User", inversedBy="entries")
+ * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="entries")
*/
private $user;
/*
* @param User $user
*/
- public function __construct(User $user)
+ public function __construct(\Wallabag\UserBundle\Entity\User $user)
{
$this->user = $user;
$this->tags = new ArrayCollection();
/**
* @param bool $isPublic
*/
- public function setPublic($isPublic)
+ public function setIsPublic($isPublic)
{
$this->isPublic = $isPublic;
}
{
$this->tags->removeElement($tag);
}
+
+ /**
+ * Set previewPicture.
+ *
+ * @param string $previewPicture
+ *
+ * @return Entry
+ */
+ public function setPreviewPicture($previewPicture)
+ {
+ $this->previewPicture = $previewPicture;
+
+ return $this;
+ }
+
+ /**
+ * Get previewPicture.
+ *
+ * @return string
+ */
+ public function getPreviewPicture()
+ {
+ return $this->previewPicture;
+ }
+
+ /**
+ * Set language.
+ *
+ * @param string $language
+ *
+ * @return Entry
+ */
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+
+ return $this;
+ }
+
+ /**
+ * Get language.
+ *
+ * @return string
+ */
+ public function getLanguage()
+ {
+ return $this->language;
+ }
}