Helper.php 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Symfony\Components\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. * Helper is the base class for all helper classes.
  13. *
  14. * @package symfony
  15. * @subpackage console
  16. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  17. */
  18. abstract class Helper implements HelperInterface
  19. {
  20. protected
  21. $helperSet = null;
  22. /**
  23. * Sets the helper set associated with this helper.
  24. *
  25. * @param HelperSet $helperSet A HelperSet instance
  26. */
  27. public function setHelperSet(HelperSet $helperSet = null)
  28. {
  29. $this->helperSet = $helperSet;
  30. }
  31. /**
  32. * Gets the helper set associated with this helper.
  33. *
  34. * @return HelperSet A HelperSet instance
  35. */
  36. public function getHelperSet()
  37. {
  38. return $this->helperSet;
  39. }
  40. }