Completed
Pull Request — master (#472)
by
unknown
02:37
created

EventEvent::deserialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace CultuurNet\UDB3\Event;
4
5
use Broadway\Serializer\SerializableInterface;
6
use InvalidArgumentException;
7
8
abstract class EventEvent implements SerializableInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $eventId;
14
15
    public function __construct(string $eventId)
16
    {
17
        $this->eventId = $eventId;
18
    }
19
20
    public function getEventId(): string
21
    {
22
        return $this->eventId;
23
    }
24
25
    public function serialize(): array
26
    {
27
        return [
28
            'event_id' => $this->eventId,
29
        ];
30
    }
31
}
32