vendor/symfony/src/Symfony/Component/Console/Helper/Helper.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony package.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * For the full copyright and license information, please view the LICENSE
       
     9  * file that was distributed with this source code.
       
    10  */
       
    11 
       
    12 namespace Symfony\Component\Console\Helper;
       
    13 
       
    14 /**
       
    15  * Helper is the base class for all helper classes.
       
    16  *
       
    17  * @author Fabien Potencier <fabien@symfony.com>
       
    18  */
       
    19 abstract class Helper implements HelperInterface
       
    20 {
       
    21     protected $helperSet = null;
       
    22 
       
    23     /**
       
    24      * Sets the helper set associated with this helper.
       
    25      *
       
    26      * @param HelperSet $helperSet A HelperSet instance
       
    27      */
       
    28     public function setHelperSet(HelperSet $helperSet = null)
       
    29     {
       
    30         $this->helperSet = $helperSet;
       
    31     }
       
    32 
       
    33     /**
       
    34      * Gets the helper set associated with this helper.
       
    35      *
       
    36      * @return HelperSet A HelperSet instance
       
    37      */
       
    38     public function getHelperSet()
       
    39     {
       
    40         return $this->helperSet;
       
    41     }
       
    42 }