Passed
Pull Request — master (#6127)
by Angel Fernando Quiroz
08:24
created

PortfolioItemScoredHookEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPortfolio() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
declare(strict_types=1);
6
7
namespace Chamilo\CoreBundle\HookEvent;
8
9
use Chamilo\CoreBundle\Entity\Portfolio;
10
use Chamilo\CoreBundle\HookEvent\HookEvent;
11
12
class PortfolioItemScoredHookEvent extends HookEvent
13
{
14
    public function getPortfolio(): ?Portfolio
15
    {
16
        return $this->data['portfolio'] ?? null;
17
    }
18
}
19