Passed
Pull Request — master (#6127)
by Angel Fernando Quiroz
09:20
created

PortfolioItemVisibilityChangedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRecipientIdList() 0 3 1
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\Event;
8
9
use Chamilo\CoreBundle\Entity\Portfolio;
10
11
class PortfolioItemVisibilityChangedEvent extends AbstractEvent
12
{
13
    public function getPortfolio(): ?Portfolio
14
    {
15
        return $this->data['portfolio'] ?? null;
16
    }
17
18
    public function getRecipientIdList(): array
19
    {
20
        return $this->data['recipients'] ?? [];
21
    }
22
}
23