diff options
Diffstat (limited to 'lib/public/Files')
-rw-r--r-- | lib/public/Files/File.php | 8 | ||||
-rw-r--r-- | lib/public/Files/FileInfo.php | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/public/Files/File.php b/lib/public/Files/File.php index ad2cb7b55c2..29a83b4df7d 100644 --- a/lib/public/Files/File.php +++ b/lib/public/Files/File.php @@ -96,4 +96,12 @@ interface File extends Node { * @throws NotFoundException */ public function getChecksum(); + + /** + * Get the extension of this file + * + * @return string + * @since 15.0.0 + */ + public function getExtension(): string; } diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php index 1fe71b356c5..e25a47e83cd 100644 --- a/lib/public/Files/FileInfo.php +++ b/lib/public/Files/FileInfo.php @@ -259,4 +259,12 @@ interface FileInfo { * @since 9.0.0 */ public function getChecksum(); + + /** + * Get the extension of the file + * + * @return string + * @since 15.0.0 + */ + public function getExtension(): string; } |