<?php
namespace App\Message;
class ListingUpdatedMessage implements ExternalMessageInterface
{
private int $listingId;
public function __construct(int $listingId)
{
$this->listingId = $listingId;
}
public function getListingId(): int
{
return $this->listingId;
}
public function getRoutingKey(): string
{
return 'external.moonshot.listing.updated';
}
}