for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ConferenceTools\Tickets\Domain\Event\Ticket;
use Carnage\Cqrs\Event\EventInterface;
use JMS\Serializer\Annotation as Jms;
class TicketCancelled implements EventInterface
{
/**
* @Jms\Type("string")
* @var string
*/
private $id;
private $ticketId;
* TicketCancelled constructor.
* @param string $id
* @param string $ticketId
public function __construct(string $id, string $ticketId)
$this->id = $id;
$this->ticketId = $ticketId;
}
* @return string
public function getId(): string
return $this->id;
public function getTicketId(): string
return $this->ticketId;