Completed
Pull Request — master (#473)
by
unknown
02:11
created

ActorEvent::deserialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * @file
5
 * Contains \Cultuurnet\UDB3\Actor\ActorEvent.
6
 */
7
8
namespace CultuurNet\UDB3\Actor;
9
10
use Broadway\Serializer\SerializableInterface;
11
12
abstract class ActorEvent implements SerializableInterface
13
{
14
    protected $actorId;
15
16
    public function __construct($actorId)
17
    {
18
        $this->actorId = $actorId;
19
    }
20
21
    public function getActorId()
22
    {
23
        return $this->actorId;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function serialize()
30
    {
31
        return array(
32
            'actor_id' => $this->actorId,
33
        );
34
    }
35
}
36