Passed
Push — portfolio ( 98688e )
by Angel Fernando Quiroz
13:09
created

Portfolio   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getIcon() 0 3 1
A getCategory() 0 3 1
A getResourceTypes() 0 4 1
A getTitle() 0 3 1
A getLink() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\Tool;
8
9
use Chamilo\CoreBundle\Entity\Portfolio as PortfolioEntity;
10
use Chamilo\CoreBundle\Enums\ToolIcon;
11
12
class Portfolio extends AbstractTool implements ToolInterface
13
{
14
    public function getTitle(): string
15
    {
16
        return 'portfolio';
17
    }
18
19
    public function getCategory(): string
20
    {
21
        return 'interaction';
22
    }
23
24
    public function getLink(): string
25
    {
26
        return '/main/portfolio/index.php';
27
    }
28
29
    public function getIcon(): string
30
    {
31
        return 'mdi-'.ToolIcon::PORTFOLIO->value;
32
    }
33
34
    public function getResourceTypes(): ?array
35
    {
36
        return [
37
            'portfolio_items' => PortfolioEntity::class,
38
        ];
39
    }
40
}
41