*/
private $updatedAt;
+ /**
+ * @var \DateTime
+ *
+ * @ORM\Column(name="published_at", type="datetime", nullable=true)
+ *
+ * @Groups({"entries_for_user", "export_all"})
+ */
+ private $publishedAt;
+
+ /**
+ * @var array
+ *
+ * @ORM\Column(name="published_by", type="array", nullable=true)
+ *
+ * @Groups({"entries_for_user", "export_all"})
+ */
+ private $publishedBy;
+
/**
* @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"})
* @ORM\JoinTable
private $previewPicture;
/**
- * @var bool
+ * @var string
*
- * @ORM\Column(name="is_public", type="boolean", nullable=true, options={"default" = false})
+ * @ORM\Column(name="http_status", type="string", length=3, nullable=true)
*
- * @Groups({"export_all"})
+ * @Groups({"entries_for_user", "export_all"})
*/
- private $isPublic;
+ private $httpStatus;
/**
- * @var string
+ * @var array
*
- * @ORM\Column(name="http_status", type="string", length=3, nullable=true)
+ * @ORM\Column(name="headers", type="array", nullable=true)
*
* @Groups({"entries_for_user", "export_all"})
*/
- private $httpStatus;
+ private $headers;
/**
* @Exclude
$this->domainName = $domainName;
}
- /**
- * @return bool
- */
- public function isPublic()
- {
- return $this->isPublic;
- }
-
- /**
- * @param bool $isPublic
- */
- public function setIsPublic($isPublic)
- {
- $this->isPublic = $isPublic;
- }
-
/**
* @return ArrayCollection<Tag>
*/
return $this;
}
+
+ /**
+ * @return \Datetime
+ */
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+
+ /**
+ * @param \Datetime $publishedAt
+ *
+ * @return Entry
+ */
+ public function setPublishedAt(\Datetime $publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+
+ return $this;
+ }
+
+ /**
+ * @return array
+ */
+ public function getPublishedBy()
+ {
+ return $this->publishedBy;
+ }
+
+ /**
+ * @param array $publishedBy
+ *
+ * @return Entry
+ */
+ public function setPublishedBy($publishedBy)
+ {
+ $this->publishedBy = $publishedBy;
+
+ return $this;
+ }
+
+ /**
+ * @return array
+ */
+ public function getHeaders()
+ {
+ return $this->headers;
+ }
+
+ /**
+ * @param array $headers
+ *
+ * @return Entry
+ */
+ public function setHeaders($headers)
+ {
+ $this->headers = $headers;
+
+ return $this;
+ }
}