Helper.php 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Console\Helper;
  11. /**
  12. * Helper is the base class for all helper classes.
  13. *
  14. * @author Fabien Potencier <fabien@symfony.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. }