2010-04-08 08:03:04 +04:00
|
|
|
<?php
|
|
|
|
|
2010-08-23 10:21:41 +04:00
|
|
|
namespace Symfony\Component\Console\Helper;
|
2010-04-08 08:03:04 +04:00
|
|
|
|
|
|
|
/*
|
2010-10-30 15:24:50 +04:00
|
|
|
* This file is part of the Symfony framework.
|
2010-04-08 08:03:04 +04:00
|
|
|
*
|
|
|
|
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
|
*
|
|
|
|
* This source file is subject to the MIT license that is bundled
|
|
|
|
* with this source code in the file LICENSE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Helper is the base class for all helper classes.
|
|
|
|
*
|
2010-10-30 15:24:50 +04:00
|
|
|
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
|
2010-04-08 08:03:04 +04:00
|
|
|
*/
|
|
|
|
abstract class Helper implements HelperInterface
|
|
|
|
{
|
2010-10-30 15:24:50 +04:00
|
|
|
protected $helperSet = null;
|
2010-04-08 08:03:04 +04:00
|
|
|
|
2010-10-30 15:24:50 +04:00
|
|
|
/**
|
|
|
|
* Sets the helper set associated with this helper.
|
|
|
|
*
|
|
|
|
* @param HelperSet $helperSet A HelperSet instance
|
|
|
|
*/
|
|
|
|
public function setHelperSet(HelperSet $helperSet = null)
|
|
|
|
{
|
|
|
|
$this->helperSet = $helperSet;
|
|
|
|
}
|
2010-04-08 08:03:04 +04:00
|
|
|
|
2010-10-30 15:24:50 +04:00
|
|
|
/**
|
|
|
|
* Gets the helper set associated with this helper.
|
|
|
|
*
|
|
|
|
* @return HelperSet A HelperSet instance
|
|
|
|
*/
|
|
|
|
public function getHelperSet()
|
|
|
|
{
|
|
|
|
return $this->helperSet;
|
|
|
|
}
|
2010-04-08 08:03:04 +04:00
|
|
|
}
|