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

Section   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 49
ccs 11
cts 11
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getID() 0 3 1
A getName() 0 3 1
A getPriority() 0 3 1
A getIcon() 0 3 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
}