<?php

namespace Elastica;

/**
 * Interface for named objects.
 *
 * @author Evgeniy Sokolov <ewgraf@gmail.com>
 */
interface NameableInterface
{
    /**
     * Retrieve the name of this object.
     *
     * @return string
     */
    public function getName();

    /**
     * Set the name of this object.
     *
     * @return $this
     */
    public function setName(string $name);
}
