<?php
namespace FiloBlu\Esb\Api\Data;

use Magento\Newsletter\Model\Subscriber;

/**
 * Interface SubscriberProducerInterface
 * @package FiloBlu\Esb\Api\Data
 */
interface SubscriberProducerInterface extends ProducerInterface
{
    /**
     * @param Subscriber|null $subscriber
     * @return MessageInterface
     */
    public function produce(Subscriber $subscriber = null) : MessageInterface;
}
