<?php

namespace Enqueue\Null;

use Interop\Queue\PsrTopic;

class NullTopic implements PsrTopic
{
    /**
     * @var string
     */
    private $name;

    /**
     * @param string $name
     */
    public function __construct($name)
    {
        $this->name = $name;
    }

    /**
     * @return string
     */
    public function getTopicName()
    {
        return $this->name;
    }
}
