Completed
Push — master ( f21795...e63d25 )
by Janis
02:34
created

File::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 5
crap 1
1
<?php
2
/**
3
 * nextCloud - ocr
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 *
8
 * @author Janis Koehr <[email protected]>
9
 * @copyright Janis Koehr 2017
10
 */
11
12
namespace OCA\Ocr\Db;
13
14
use OCP\AppFramework\Db\Entity;
15
16
/**
17
 * Class File (represents the File to process)
18
 *
19
 * @package OCA\Ocr\Db
20
 * @method integer getFileid()
21
 * @method string getPath()
22
 * @method string getName()
23
 * @method string getMimetype()
24
 * @method string getStoragename()
25
 */
26
class File extends Entity {
27
28
	/**
29
	 * @var integer
30
	 */
31
	protected $fileid;
32
33
	/**
34
	 * @var string
35
	 */
36
	protected $path;
37
38
	/**
39
	 * @var string
40
	 */
41
	protected $name;
42
43
	/**
44
	 * @var string
45
	 */
46
	protected $mimetype;
47
48
	/**
49
	 * @var string
50
	 */
51
	protected $storagename;
52
53
	/**
54
	 * File constructor.
55
	 *
56
	 * @param null $fileid
57
	 * @param null $path
58
	 * @param null $name
59
	 * @param null $mimetype
60
	 * @param null $storagename
61
	 */
62 6
	public function __construct($fileid = null, $path = null, $name = null, $mimetype = null, $storagename = null) {
63 6
		$this->fileid = $fileid;
64 6
		$this->path = $path;
65 6
		$this->name = $name;
66 6
		$this->mimetype = $mimetype;
67 6
		$this->storagename = $storagename;
68 6
	}
69
70
}