File::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 7
cts 7
cp 1
rs 10
cc 1
nc 1
nop 5
crap 1
1
<?php
2
3
/**
4
 * Nextcloud - OCR
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
namespace OCA\Ocr\Db;
12
13
use OCP\AppFramework\Db\Entity;
14
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
     *
30
     * @var integer
31
     */
32
    protected $fileid;
33
34
    /**
35
     *
36
     * @var string
37
     */
38
    protected $path;
39
40
    /**
41
     *
42
     * @var string
43
     */
44
    protected $name;
45
46
    /**
47
     *
48
     * @var string
49
     */
50
    protected $mimetype;
51
52
    /**
53
     *
54
     * @var string
55
     */
56
    protected $storagename;
57
58
    /**
59
     * File constructor.
60
     * 
61
     * @param integer $fileid            
62
     * @param string $path            
63
     * @param string $name            
64
     * @param string $mimetype            
65
     * @param string $storagename            
66
     */
67 44
    public function __construct($fileid = null, $path = null, $name = null, $mimetype = null, $storagename = null) {
68 44
        $this->fileid = $fileid;
69 44
        $this->path = $path;
70 44
        $this->name = $name;
71 44
        $this->mimetype = $mimetype;
72 44
        $this->storagename = $storagename;
73
    }
74
}