Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcos Zuriaga <wolfi@wolfi.es>2016-10-15 18:53:22 +0300
committerMarcos Zuriaga <wolfi@wolfi.es>2016-10-15 18:53:22 +0300
commit95509e3558ce508c8810f4561d8cc35c0d8b1a1f (patch)
treee1938ce963a105b0e2c548e27cb32305c7c419fa /lib
parent114df3e948c45efc668b354289ff7697b0389a8a (diff)
Added file mapper test
Updated database test mock data and added missing tables Changed some wrong phpdoc Added some phpdoc
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/File.php2
-rw-r--r--lib/Db/FileMapper.php5
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/Db/File.php b/lib/Db/File.php
index 5952d5f3..de3dd085 100644
--- a/lib/Db/File.php
+++ b/lib/Db/File.php
@@ -18,7 +18,7 @@ use \OCP\AppFramework\Db\Entity;
* @method void setGuid(string $value)
* @method string getGuid()
* @method void setUserId(string $value)
- * @method string getUserid()
+ * @method string getUserId()
* @method void setMimetype(string $value)
* @method string getMimetype()
* @method void setFilename(string $value)
diff --git a/lib/Db/FileMapper.php b/lib/Db/FileMapper.php
index 1a72ca37..93d47689 100644
--- a/lib/Db/FileMapper.php
+++ b/lib/Db/FileMapper.php
@@ -58,6 +58,11 @@ class FileMapper extends Mapper {
return $this->findEntity($sql, $params);
}
+ /**
+ * @param $file_raw
+ * @param $userId
+ * @return File
+ */
public function create($file_raw, $userId) {
$file = new File();
$file->setGuid($this->utils->GUID());