Passed
Pull Request — master (#102)
by Damien
03:00
created

AuditEvent::getPayload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace DH\DoctrineAuditBundle\Event;
4
5
use Symfony\Contracts\EventDispatcher\Event;
6
7
abstract class AuditEvent extends Event
8
{
9
    /**
10
     * @var array
11
     */
12
    private $payload;
13
14
    public function __construct(array $payload)
15
    {
16
        $this->payload = $payload;
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function getPayload(): array
23
    {
24
        return $this->payload;
25
    }
26
}
27