Share::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
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 Share
18
 * 
19
 * @package OCA\Ocr\Db
20
 * @method string getFileTarget()
21
 */
22
class Share extends Entity {
23
24
    /**
25
     *
26
     * @var string
27
     */
28
    protected $fileTarget;
29
30
    /**
31
     * Share constructor.
32
     * 
33
     * @param string $fileTarget            
34
     */
35 7
    public function __construct($fileTarget = null) {
36 7
        $this->fileTarget = $fileTarget;
37
    }
38
}