<?php


namespace Retrinko\CottonTail\Publisher;


interface PublisherInterface
{
    /**
     * @param string $data
     *
     * @return void
     */
    public function publish($data);
}
<?php


namespace Retrinko\CottonTail\Publisher;


use Retrinko\Serializer\Interfaces\SerializerInterface;

interface PublisherInterface
{
    /**
     * @param string $data
     *
     * @return void
     */
    public function publish($data);

    /**
     * @return SerializerInterface
     */
    public function getSerializer();
}
Add new method to publisher interface.
Add new method to publisher interface.
