private $consumerKey;
private $skippedEntries = 0;
private $importedEntries = 0;
+ private $markAsRead;
protected $accessToken;
public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig)
return true;
}
+
+ /**
+ * Set whether articles must be all marked as read.
+ *
+ * @param bool $markAsRead
+ */
+ public function setMarkAsRead($markAsRead)
+ {
+ $this->markAsRead = $markAsRead;
+
+ return $this;
+ }
+
+ /**
+ * Get whether articles must be all marked as read.
+ */
+ public function getRead()
+ {
+ return $this->markAsRead;
+ }
+
/**
* {@inheritdoc}
*/
$entry = $this->contentProxy->updateEntry($entry, $url);
// 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
- if ($pocketEntry['status'] == 1) {
+ if ($pocketEntry['status'] == 1 | $this->markAsRead) {
$entry->setArchived(true);
}