diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Entry.php | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index bbb1fb53..b71c467c 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php | |||
@@ -122,6 +122,24 @@ class Entry | |||
122 | private $updatedAt; | 122 | private $updatedAt; |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * @var \DateTime | ||
126 | * | ||
127 | * @ORM\Column(name="published_at", type="datetime", nullable=true) | ||
128 | * | ||
129 | * @Groups({"entries_for_user", "export_all"}) | ||
130 | */ | ||
131 | private $publishedAt; | ||
132 | |||
133 | /** | ||
134 | * @var array | ||
135 | * | ||
136 | * @ORM\Column(name="published_by", type="json_array", nullable=true) | ||
137 | * | ||
138 | * @Groups({"entries_for_user", "export_all"}) | ||
139 | */ | ||
140 | private $publishedBy; | ||
141 | |||
142 | /** | ||
125 | * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"}) | 143 | * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"}) |
126 | * @ORM\JoinTable | 144 | * @ORM\JoinTable |
127 | * | 145 | * |
@@ -676,4 +694,44 @@ class Entry | |||
676 | 694 | ||
677 | return $this; | 695 | return $this; |
678 | } | 696 | } |
697 | |||
698 | /** | ||
699 | * @return \Datetime | ||
700 | */ | ||
701 | public function getPublishedAt() | ||
702 | { | ||
703 | return $this->publishedAt; | ||
704 | } | ||
705 | |||
706 | /** | ||
707 | * @param \Datetime $publishedAt | ||
708 | * | ||
709 | * @return Entry | ||
710 | */ | ||
711 | public function setPublishedAt(\Datetime $publishedAt) | ||
712 | { | ||
713 | $this->publishedAt = $publishedAt; | ||
714 | |||
715 | return $this; | ||
716 | } | ||
717 | |||
718 | /** | ||
719 | * @return string | ||
720 | */ | ||
721 | public function getPublishedBy() | ||
722 | { | ||
723 | return $this->publishedBy; | ||
724 | } | ||
725 | |||
726 | /** | ||
727 | * @param string $publishedBy | ||
728 | * | ||
729 | * @return Entry | ||
730 | */ | ||
731 | public function setPublishedBy($publishedBy) | ||
732 | { | ||
733 | $this->publishedBy = $publishedBy; | ||
734 | |||
735 | return $this; | ||
736 | } | ||
679 | } | 737 | } |