<?php

/**
 * Copyright © 2017 Ubertheme.com All rights reserved.
 */

namespace Ubertheme\Base\Block\Ajax;

use Magento\Framework\View\Element\Template;
use Magento\Framework\View\Element\Template\Context;
use Ubertheme\Base\Helper\Data as DataHelper;

/**
 * Class AddCart
 * @package Ubertheme\Base\Block\Ajax
 */
class AddCart extends Template
{

    /** @var DataHelper $helper */
    protected $helper;

    /**
     * Compare constructor.
     * @param Context $context
     * @param array $data
     * @param DataHelper $helper
     */
    public function __construct(
        Context $context,
        array $data = [],
        DataHelper $helper
    ) {
        parent::__construct($context, $data);
        $this->helper = $helper;
    }

    public function getAjaxCartOptions()
    {
        return $this->helper->getAjaxCartOptions();
    }
}
