aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-02-01 15:02:53 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-02-07 14:23:16 +0100
commitf45df6096bbac83c1f53a40a738c31a01b090065 (patch)
treeea28c8780adf6e28dcb319c5e32f8b519115f9b8 /lib/public
parent2a8118e459d05e3dce2bd5421cca33859e7e9f02 (diff)
downloadnextcloud-server-f45df6096bbac83c1f53a40a738c31a01b090065.tar.gz
nextcloud-server-f45df6096bbac83c1f53a40a738c31a01b090065.zip
Add since labels
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/SimpleFS/InMemoryFile.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/public/Files/SimpleFS/InMemoryFile.php b/lib/public/Files/SimpleFS/InMemoryFile.php
index 378fece3e94..7976523f4e8 100644
--- a/lib/public/Files/SimpleFS/InMemoryFile.php
+++ b/lib/public/Files/SimpleFS/InMemoryFile.php
@@ -29,6 +29,7 @@ use OCP\Files\NotPermittedException;
* This class represents a file that is only hold in memory.
*
* @package OC\Files\SimpleFS
+ * @since 16.0.0
*/
class InMemoryFile implements ISimpleFile {
/**
@@ -50,6 +51,7 @@ class InMemoryFile implements ISimpleFile {
*
* @param string $name The file name
* @param string $contents The file contents
+ * @since 16.0.0
*/
public function __construct(string $name, string $contents) {
$this->name = $name;
@@ -58,6 +60,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function getName() {
return $this->name;
@@ -65,6 +68,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function getSize() {
return strlen($this->contents);
@@ -72,6 +76,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function getETag() {
return '';
@@ -79,6 +84,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function getMTime() {
return time();
@@ -86,6 +92,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function getContent() {
return $this->contents;
@@ -93,6 +100,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function putContent($data) {
$this->contents = $data;
@@ -100,6 +108,8 @@ class InMemoryFile implements ISimpleFile {
/**
* In memory files can't be deleted.
+ *
+ * @since 16.0.0
*/
public function delete() {
// unimplemented for in memory files
@@ -107,6 +117,7 @@ class InMemoryFile implements ISimpleFile {
/**
* @inheritdoc
+ * @since 16.0.0
*/
public function getMimeType() {
$fileInfo = new \finfo(FILEINFO_MIME_TYPE);
@@ -117,6 +128,7 @@ class InMemoryFile implements ISimpleFile {
* Stream reading is unsupported for in memory files.
*
* @throws NotPermittedException
+ * @since 16.0.0
*/
public function read() {
throw new NotPermittedException(
@@ -128,6 +140,7 @@ class InMemoryFile implements ISimpleFile {
* Stream writing isn't available for in memory files.
*
* @throws NotPermittedException
+ * @since 16.0.0
*/
public function write() {
throw new NotPermittedException(