<?php
/**
 * @package   Nicepage Website Builder
 * @author    Nicepage https://www.nicepage.com
 * @copyright Copyright (c) 2016 - 2019 Nicepage
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
 */

namespace NP\Processor\ECommerce\Vm;

defined('_JEXEC') or die;

use NP\Builder\ProductDataBuilder;
use ShopFunctions;
use CurrencyDisplay;
class VmProductDetailsTemplateProcessor extends VmProductDetailsProcessor
{
    private $_product;

    /**
     * @param string $html    Control html
     * @param array  $options Global options
     */
    public function __construct($html, $options)
    {
        parent::__construct($html, $options);
    }

    /**
     * Build control
     *
     * @return void
     */
    public function build()
    {
        $templateData = $this->_options['templateData'];
        $products = array();
        $builder = new ProductDataBuilder($templateData['product']);
        $product = $builder->getData();
        array_push($products, $product);

        $this->processProductItem($products);
    }

}
