Completed
Pull Request — master (#93)
by Janis
04:19
created

Section::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
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\Settings;
12
13
use OCP\IL10N;
14
use OCP\Settings\IIconSection;
15
16
17
class Section implements IIconSection {
18
19
    /** @var IL10N */
20
    private $l;
21
22
    /**
23
     *
24
     * @param IL10N $l            
25
     */
26 4
    public function __construct(IL10N $l) {
27 4
        $this->l = $l;
28 4
    }
29
30
    /**
31
     *
32
     * {@inheritdoc}
33
     *
34
     */
35 1
    public function getID() {
36 1
        return 'ocr';
37
    }
38
39
    /**
40
     *
41
     * {@inheritdoc}
42
     *
43
     */
44 1
    public function getName() {
45 1
        return $this->l->t('OCR');
46
    }
47
48
    /**
49
     *
50
     * {@inheritdoc}
51
     *
52
     */
53 1
    public function getPriority() {
54 1
        return 75;
55
    }
56
57
    /**
58
     *
59
     * {@inheritdoc}
60
     *
61
     */
62 1
    public function getIcon() {
63 1
        return '/apps/ocr/img/icon/ocr.svg';
64
    }
65
}