for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CultuurNet\UDB3\Actor;
use Broadway\Serializer\SerializableInterface;
abstract class ActorEvent implements SerializableInterface
{
/**
* @var string
*/
protected $actorId;
public function __construct($actorId)
$this->actorId = $actorId;
}
public function getActorId(): string
return $this->actorId;
public function serialize(): array
return [
'actor_id' => $this->actorId,
];