Passed
Push — master ( 0ea101...fcce8e )
by Yannick
07:24
created

User   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 33
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getCategory() 0 3 1
A getIcon() 0 3 1
A getResourceTypes() 0 6 1
A getNameToShow() 0 3 1
A getLink() 0 3 1
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\CoreBundle\Entity\MessageAttachment;
10
use Chamilo\CoreBundle\Entity\PersonalFile;
11
use Chamilo\CoreBundle\Entity\TicketMessageAttachment;
12
13
class User extends AbstractTool implements ToolInterface
14
{
15
    public function getName(): string
16
    {
17
        return 'user';
18
    }
19
20
    public function getNameToShow(): string
21
    {
22
        return 'Users';
23
    }
24
25
    public function getIcon(): string
26
    {
27
        return 'mdi-user';
28
    }
29
30
    public function getLink(): string
31
    {
32
        return '/';
33
    }
34
35
    public function getCategory(): string
36
    {
37
        return 'interaction';
38
    }
39
40
    public function getResourceTypes(): ?array
41
    {
42
        return [
43
            'files' => PersonalFile::class,
44
            'message_attachments' => MessageAttachment::class,
45
            'ticket_message_attachments' => TicketMessageAttachment::class,
46
        ];
47
    }
48
}
49