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

Assignment::getNameToShow()   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\CStudentPublication;
10
use Chamilo\CourseBundle\Entity\CStudentPublicationAssignment;
11
use Chamilo\CourseBundle\Entity\CStudentPublicationComment;
12
use Chamilo\CourseBundle\Entity\CStudentPublicationCorrection;
13
14
class Assignment extends AbstractTool implements ToolInterface
15
{
16
    public function getTitle(): string
17
    {
18
        return 'student_publication';
19
    }
20
21
    public function getTitleToShow(): string
22
    {
23
        return 'Assignments';
24
    }
25
26
    public function getLink(): string
27
    {
28
        return '/resources/assignment/:nodeId';
29
    }
30
31
    public function getIcon(): string
32
    {
33
        return 'mdi-inbox-full';
34
    }
35
36
    public function getCategory(): string
37
    {
38
        return 'interaction';
39
    }
40
41
    public function getResourceTypes(): ?array
42
    {
43
        return [
44
            'student_publications' => CStudentPublication::class,
45
            'student_publications_assignments' => CStudentPublicationAssignment::class,
46
            'student_publications_comments' => CStudentPublicationComment::class,
47
            'student_publications_corrections' => CStudentPublicationCorrection::class,
48
        ];
49
    }
50
}
51