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

DocumentItemActionEvent::getDocument()   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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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