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

Gradebook::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\GradebookCategory;
10
use Chamilo\CoreBundle\Entity\GradebookEvaluation;
11
use Chamilo\CoreBundle\Entity\GradebookLink;
12
13
class Gradebook extends AbstractTool implements ToolInterface
14
{
15
    public function getTitle(): string
16
    {
17
        return 'gradebook';
18
    }
19
20
    public function getTitleToShow(): string
21
    {
22
        return 'Assessments';
23
    }
24
25
    public function getLink(): string
26
    {
27
        return '/main/gradebook/index.php';
28
    }
29
30
    public function getIcon(): string
31
    {
32
        return 'mdi-certificate';
33
    }
34
35
    public function getCategory(): string
36
    {
37
        return 'authoring';
38
    }
39
40
    public function getResourceTypes(): ?array
41
    {
42
        return [
43
            'gradebooks' => GradebookCategory::class,
44
            'gradebook_links' => GradebookLink::class,
45
            'gradebook_evaluations' => GradebookEvaluation::class,
46
        ];
47
    }
48
}
49