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

Document::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\CDocument;
10
11
class Document extends AbstractTool implements ToolInterface
12
{
13
    public function getTitle(): string
14
    {
15
        return 'document';
16
    }
17
18
    public function getTitleToShow(): string
19
    {
20
        return 'Documents';
21
    }
22
23
    public function getIcon(): string
24
    {
25
        return 'mdi-bookshelf';
26
    }
27
28
    public function getLink(): string
29
    {
30
        return '/resources/document/:nodeId/';
31
    }
32
33
    public function getCategory(): string
34
    {
35
        return 'authoring';
36
    }
37
38
    public function getResourceTypes(): ?array
39
    {
40
        return [
41
            'files' => CDocument::class,
42
        ];
43
    }
44
}
45