Completed
Pull Request — master (#93)
by Janis
14:36
created

Section   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 43
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
 *
6
 * This file is licensed under the Affero General Public License version 3 or
7
 * later. See the COPYING file.
8
 *
9
 * @author Janis Koehr <[email protected]>
10
 * @copyright Janis Koehr 2017
11
 */
12
namespace OCA\Ocr\Settings;
13
14
use OCP\IL10N;
15
use OCP\Settings\IIconSection;
16
17
class Section implements IIconSection {
18
	/** @var IL10N */
19
	private $l;
20
	/**
21
	 *
22
	 * @param IL10N $l        	
23
	 */
24
	public function __construct(IL10N $l) {
25
		$this->l = $l;
26
	}
27
	/**
28
	 *
29
	 * {@inheritdoc}
30
	 *
31
	 */
32
	public function getID() {
33
		return 'ocr';
34
	}
35
	/**
36
	 *
37
	 * {@inheritdoc}
38
	 *
39
	 */
40
	public function getName() {
41
		return $this->l->t ( 'OCR' );
42
	}
43
	/**
44
	 *
45
	 * {@inheritdoc}
46
	 *
47
	 */
48
	public function getPriority() {
49
		return 75;
50
	}
51
	/**
52
	 *
53
	 * {@inheritdoc}
54
	 *
55
	 */
56
	public function getIcon() {
57
		return '/apps/ocr/img/icon/ocr.svg';
58
	}
59
}