Helper.php 959 B

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