HelperInterface.php 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Symfony\Component\Console\Helper;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * HelperInterface is the interface all helpers must implement.
  13. *
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. */
  16. interface HelperInterface
  17. {
  18. /**
  19. * Sets the helper set associated with this helper.
  20. *
  21. * @param HelperSet $helperSet A HelperSet instance
  22. */
  23. function setHelperSet(HelperSet $helperSet = null);
  24. /**
  25. * Gets the helper set associated with this helper.
  26. *
  27. * @return HelperSet A HelperSet instance
  28. */
  29. function getHelperSet();
  30. /**
  31. * Returns the canonical name of this helper.
  32. *
  33. * @return string The canonical name
  34. */
  35. function getName();
  36. }