NameableInterface.php 420 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Elastica;
  3. /**
  4. * Interface for named objects.
  5. *
  6. *
  7. * @author Evgeniy Sokolov <ewgraf@gmail.com>
  8. */
  9. interface NameableInterface
  10. {
  11. /**
  12. * Retrieve the name of this object.
  13. *
  14. * @return string
  15. */
  16. public function getName();
  17. /**
  18. * Set the name of this object.
  19. *
  20. * @param string $name
  21. *
  22. * @return $this
  23. */
  24. public function setName($name);
  25. }