diff options
Diffstat (limited to 'lib/public/Share/IShare.php')
-rw-r--r-- | lib/public/Share/IShare.php | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index 40548c6c73d..84388c00bbe 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -385,21 +385,39 @@ interface IShare { /** * Set the expiration date * - * @param null|\DateTime $expireDate + * @param \DateTime|null $expireDate * @return \OCP\Share\IShare The modified object * @since 9.0.0 */ - public function setExpirationDate($expireDate); + public function setExpirationDate(\DateTime|null $expireDate); /** * Get the expiration date * - * @return \DateTime + * @return \DateTime|null * @since 9.0.0 */ public function getExpirationDate(); /** + * Set overwrite flag for falsy expiry date vavlues + * + * @param bool $noExpirationDate + * @return \OCP\Share\IShare The modified object + * @since 27.1.10 + */ + public function setNoExpirationDate(bool $noExpirationDate); + + + /** + * Get value of overwrite falsy expiry date flag + * + * @return bool + * @since 27.1.10 + */ + public function getNoExpirationDate(); + + /** * Is the share expired ? * * @return boolean |