Passed
Push — master ( 62ef43...9556f9 )
by Julito
07:46 queued 11s
created

ToolIntro   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getCategory() 0 3 1
A getResourceTypes() 0 4 1
A getIcon() 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\CourseBundle\Entity\CToolIntro;
10
11
class ToolIntro extends AbstractTool implements ToolInterface
12
{
13
    public function getName(): string
14
    {
15
        return 'tool_intro';
16
    }
17
18
    public function getIcon(): string
19
    {
20
        return 'mdi-certificate';
21
    }
22
23
    public function getLink(): string
24
    {
25
        return '/resources/ctoolintro';
26
    }
27
28
    public function getCategory(): string
29
    {
30
        return 'tool';
31
    }
32
33
    public function getResourceTypes(): ?array
34
    {
35
        return [
36
            'tool_intro' => CToolIntro::class,
37
        ];
38
    }
39
}
40