autoExpunge = $autoExpunge; } /** * @return bool */ public function getAutoExpunge() { return $this->autoExpunge; } /** * Whether IMAP is enabled for the account. * * @param bool $enabled */ public function setEnabled($enabled) { $this->enabled = $enabled; } /** * @return bool */ public function getEnabled() { return $this->enabled; } /** * The action that will be executed on a message when it is marked as deleted * and expunged from the last visible IMAP folder. * * Accepted values: expungeBehaviorUnspecified, archive, trash, deleteForever * * @param self::EXPUNGE_BEHAVIOR_* $expungeBehavior */ public function setExpungeBehavior($expungeBehavior) { $this->expungeBehavior = $expungeBehavior; } /** * @return self::EXPUNGE_BEHAVIOR_* */ public function getExpungeBehavior() { return $this->expungeBehavior; } /** * An optional limit on the number of messages that an IMAP folder may * contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is * interpreted to mean that there is no limit. * * @param int $maxFolderSize */ public function setMaxFolderSize($maxFolderSize) { $this->maxFolderSize = $maxFolderSize; } /** * @return int */ public function getMaxFolderSize() { return $this->maxFolderSize; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ImapSettings::class, 'Google_Service_Gmail_ImapSettings');