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

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