NamingStrategyEnabledInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. */
  9. namespace Zend\Stdlib\Hydrator;
  10. use Zend\Stdlib\Hydrator\NamingStrategy\NamingStrategyInterface;
  11. interface NamingStrategyEnabledInterface
  12. {
  13. /**
  14. * Adds the given naming strategy
  15. *
  16. * @param NamingStrategyInterface $strategy The naming to register.
  17. * @return NamingStrategyEnabledInterface
  18. */
  19. public function setNamingStrategy(NamingStrategyInterface $strategy);
  20. /**
  21. * Gets the naming strategy.
  22. *
  23. * @return NamingStrategyInterface
  24. */
  25. public function getNamingStrategy();
  26. /**
  27. * Checks if a naming strategy exists.
  28. *
  29. * @return bool
  30. */
  31. public function hasNamingStrategy();
  32. /**
  33. * Removes the naming with the given name.
  34. *
  35. * @return NamingStrategyEnabledInterface
  36. */
  37. public function removeNamingStrategy();
  38. }