Passed
Push — master ( 6506fa...b67d4f )
by Angel Fernando Quiroz
07:50
created

DocumentItemActionEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAction() 0 3 1
A getDocument() 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
class DocumentItemActionEvent extends AbstractEvent
10
{
11
    public function getAction(): array
12
    {
13
        return $this->data['action'] ?? [];
14
    }
15
16
    public function getDocument(): ?array
17
    {
18
        return $this->data['document'] ?? null;
19
    }
20
}
21