Passed
Push — master ( f19b34...1fcb39 )
by Yannick
07:53 queued 01:16
created

Group::getTitleToShow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CoreBundle\Tool;
8
9
use Chamilo\CourseBundle\Entity\CGroup;
10
use Chamilo\CourseBundle\Entity\CGroupCategory;
11
12
class Group extends AbstractTool implements ToolInterface
13
{
14
    public function getTitle(): string
15
    {
16
        return 'group';
17
    }
18
19
    public function getTitleToShow(): string
20
    {
21
        return 'Groups';
22
    }
23
24
    public function getLink(): string
25
    {
26
        return '/main/group/group.php';
27
    }
28
29
    public function getIcon(): string
30
    {
31
        return 'mdi-account-group';
32
    }
33
34
    public function getCategory(): string
35
    {
36
        return 'interaction';
37
    }
38
39
    public function getResourceTypes(): ?array
40
    {
41
        return [
42
            'groups' => CGroup::class,
43
            'group_categories' => CGroupCategory::class,
44
        ];
45
    }
46
}
47