| Current Path : /var/www/iplanru/data/www/i-plan.ru/templates/yoo_everest/warp/src/Warp/Helper/ | 
| Current File : /var/www/iplanru/data/www/i-plan.ru/templates/yoo_everest/warp/src/Warp/Helper/AbstractHelper.php | 
<?php
/**
* @package   Warp Theme Framework
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
namespace Warp\Helper;
use Warp\Warp;
/**
 * Helper base class.
 */
abstract class AbstractHelper implements \ArrayAccess
{
    /**
     * @var Warp
     */
    protected $warp;
    /**
     * Constructor.
     *
     * @param Warp $warp
     */
    public function __construct(Warp $warp)
    {
        $this->warp = $warp;
    }
    /* ArrayAccess interface implementation */
    public function offsetGet($name)
    {
        return $this->warp[$name];
    }
    public function offsetSet($name, $helper)
    {
        $this->warp[$name] = $helper;
    }
    public function offsetUnset($name)
    {
        unset($this->warp[$name]);
    }
    public function offsetExists($name)
    {
        return !empty($this->warp[$name]);
    }
}