summaryrefslogtreecommitdiffstats
path: root/lib/public/files/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/files/file.php')
-rw-r--r--lib/public/files/file.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/files/file.php b/lib/public/files/file.php
index 69e6e510c8f..839d646edb1 100644
--- a/lib/public/files/file.php
+++ b/lib/public/files/file.php
@@ -30,12 +30,19 @@
// This means that they should be used by apps instead of the internal ownCloud classes
namespace OCP\Files;
+/**
+ * Interface File
+ *
+ * @package OCP\Files
+ * @since 6.0.0
+ */
interface File extends Node {
/**
* Get the content of the file as string
*
* @return string
* @throws \OCP\Files\NotPermittedException
+ * @since 6.0.0
*/
public function getContent();
@@ -45,6 +52,7 @@ interface File extends Node {
* @param string $data
* @throws \OCP\Files\NotPermittedException
* @return void
+ * @since 6.0.0
*/
public function putContent($data);
@@ -52,6 +60,7 @@ interface File extends Node {
* Get the mimetype of the file
*
* @return string
+ * @since 6.0.0
*/
public function getMimeType();
@@ -61,6 +70,7 @@ interface File extends Node {
* @param string $mode
* @return resource
* @throws \OCP\Files\NotPermittedException
+ * @since 6.0.0
*/
public function fopen($mode);
@@ -71,6 +81,7 @@ interface File extends Node {
* @param string $type
* @param bool $raw
* @return string
+ * @since 6.0.0
*/
public function hash($type, $raw = false);
}