<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

namespace E4J\VikRestaurants\Template\Decorators;

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

use E4J\VikRestaurants\Template\Taggable;
use E4J\VikRestaurants\Template\TagsDecorator;

/**
 * Adds support to the following template data (tags):
 * 
 * - {stocks_content}  An intro for the mail notification.
 * - {stocks_help}     A walkthrough for the administrator explaining how to refill the stocks.
 *
 * @since 1.9
 * @since 1.10  Moved from Mail\Decorators namespace.
 */
final class TakeawayStockDecorator implements TagsDecorator
{
    /**
     * @inheritDoc
     */
    public function build(Taggable $tags)
    {
        // register  template data
        $tags->addTemplateData([
            'stocks_content' => \JText::translate('VRTKADMINLOWSTOCKCONTENT'),
            'stocks_help'    => \JText::translate('VRTKADMINLOWSTOCKHELP'),
        ]);
    }
}
