Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class PersonalSection implements IIconSection |
||
19 | { |
||
20 | /** @var IURLGenerator */ |
||
21 | private $urlGenerator; |
||
22 | /** @var IL10N */ |
||
23 | private $l; |
||
24 | |||
25 | public function __construct(IURLGenerator $urlGenerator, IL10N $l) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * returns the relative path to an 16*16 icon describing the section. |
||
33 | * |
||
34 | * @returns string |
||
35 | */ |
||
36 | public function getIcon() |
||
37 | { |
||
38 | return $this->urlGenerator->imagePath('audioplayer', 'app-dark.svg'); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * returns the ID of the section. It is supposed to be a lower case string, |
||
43 | * |
||
44 | * @returns string |
||
45 | */ |
||
46 | public function getID() |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * returns the translated name as it should be displayed |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getName() |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * returns priority for positioning |
||
63 | * |
||
64 | * @return int |
||
65 | */ |
||
66 | public function getPriority() |
||
69 | } |
||
70 | } |