Total Complexity | 5 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PersonalSection implements IIconSection |
||
10 | { |
||
11 | /** @var IURLGenerator */ |
||
12 | private $urlGenerator; |
||
13 | /** @var IL10N */ |
||
14 | private $l; |
||
15 | |||
16 | public function __construct(IURLGenerator $urlGenerator, IL10N $l) |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * returns the relative path to an 16*16 icon describing the section. |
||
24 | * |
||
25 | * @returns string |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getIcon() |
||
30 | { |
||
31 | return $this->urlGenerator->imagePath('facerecognition', 'app-dark.svg'); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * returns the ID of the section. It is supposed to be a lower case string, |
||
36 | * |
||
37 | * @returns string |
||
38 | * |
||
39 | * @return string |
||
40 | * |
||
41 | * @psalm-return 'facerecognition' |
||
42 | */ |
||
43 | public function getID() |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * returns the translated name as it should be displayed |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getName() |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * returns priority for positioning |
||
60 | * |
||
61 | * @return int |
||
62 | */ |
||
63 | public function getPriority() |
||
66 | } |
||
67 | } |