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

Gradebook   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCategory() 0 3 1
A getResourceTypes() 0 6 1
A getLink() 0 3 1
A getIcon() 0 3 1
A getTitleToShow() 0 3 1
A getTitle() 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\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