*/
class Config
{
+ const REDIRECT_TO_HOMEPAGE = 0;
+ const REDIRECT_TO_CURRENT_PAGE = 1;
+
/**
* @var int
*
* @Assert\Range(
* min = 1,
* max = 100000,
- * maxMessage = "validator.rss_limit_too_hight"
+ * maxMessage = "validator.rss_limit_too_high"
* )
*/
private $rssLimit;
*/
private $readingSpeed;
+ /**
+ * @var string
+ *
+ * @ORM\Column(name="pocket_consumer_key", type="string", nullable=true)
+ */
+ private $pocketConsumerKey;
+
+ /**
+ * @var int
+ *
+ * @ORM\Column(name="action_mark_as_read", type="integer", nullable=true, options={"default" = 0})
+ */
+ private $actionMarkAsRead;
+
+ /**
+ * @var int
+ *
+ * @ORM\Column(name="list_mode", type="integer", nullable=true)
+ */
+ private $listMode;
+
/**
* @ORM\OneToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="config")
*/
return $this->readingSpeed;
}
+ /**
+ * Set pocketConsumerKey.
+ *
+ * @param string $pocketConsumerKey
+ *
+ * @return Config
+ */
+ public function setPocketConsumerKey($pocketConsumerKey)
+ {
+ $this->pocketConsumerKey = $pocketConsumerKey;
+
+ return $this;
+ }
+
+ /**
+ * Get pocketConsumerKey.
+ *
+ * @return string
+ */
+ public function getPocketConsumerKey()
+ {
+ return $this->pocketConsumerKey;
+ }
+
+ /**
+ * @return int
+ */
+ public function getActionMarkAsRead()
+ {
+ return $this->actionMarkAsRead;
+ }
+
+ /**
+ * @param int $actionMarkAsRead
+ *
+ * @return Config
+ */
+ public function setActionMarkAsRead($actionMarkAsRead)
+ {
+ $this->actionMarkAsRead = $actionMarkAsRead;
+
+ return $this;
+ }
+
+ /**
+ * @return int
+ */
+ public function getListMode()
+ {
+ return $this->listMode;
+ }
+
+ /**
+ * @param int $listMode
+ *
+ * @return Config
+ */
+ public function setListMode($listMode)
+ {
+ $this->listMode = $listMode;
+
+ return $this;
+ }
+
/**
* @param TaggingRule $rule
*