Completed
Pull Request — master (#6)
by Janis
04:05
created

OcrStatus::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 8
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 6
crap 2
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 2016
10
 */
11
12
namespace OCA\Ocr\Db;
13
14
use OCP\AppFramework\Db\Entity;
15
16
/**
17
 * Class to represent a ocr status.
18
 *
19
 * @method string getStatus()
20
 * @method void setStatus(string $status)
21
 * @method integer getFileId()
22
 * @method void setFileId(integer $fileId)
23
 * @method string getNewName()
24
 * @method void setNewName(string $newName)
25
 * @method string getTempFile()
26
 * @method void setTempFile(string $tempFile)
27
 * @method string getType()
28
 * @method void setType(string $type)
29
 * @method string getUserId()
30
 * @method void setUserId(string $userId)
31
 */
32
class OcrStatus extends Entity {
33
34
	/**
35
	 * @var string
36
	 */
37
	protected $status;
38
39
	/**
40
	 * @var integer
41
	 */
42
	protected $fileId;
43
44
	/**
45
	 * @var string
46
	 */
47
	protected $newName;
48
49
	/**
50
	 * @var string
51
	 */
52
	protected $tempFile;
53
54
	/**
55
	 * @var string
56
	 */
57
	protected $type;
58
59
	/**
60
	 * @var string
61
	 */
62
	protected $userId;
63
64
	/**
65
	 * OcrStatus constructor.
66
	 *
67
	 * @param null $status
68
	 * @param null $fileId
69
	 * @param null $newName
70
	 * @param null $tempFile
71
	 * @param null $type
72
	 * @param null $userId
73
	 */
74
	public function __construct($status = null, $fileId = null, $newName = null, $tempFile = null, $type = null, $userId = null) {
75
		$this->setStatus($status);
76
		$this->setFileId($fileId);
77
		$this->setNewName($newName);
78
		$this->setTempFile($tempFile);
79
		$this->setType($type);
80
		$this->setUserId($userId);
81
	}
82
}