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

Section::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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
}