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

AuditEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPayload() 0 3 1
A __construct() 0 3 1
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