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

User::getNameToShow()   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\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