<?php

namespace helpers;

use Exception;

abstract class xlvask_product_parser
{
    use xlvask_product_parser_t;


    /**
     * The setup method initializes the Original Product Name.
     * This is required for the parser to function correctly.
     * @throws Exception If the Original Product Name is empty or null.
     */
    public function setup(string $OriginalProductName): void
    {
        if (empty($OriginalProductName)) {
            throw new Exception('The Original Product Name cannot be empty or null. Please provide a valid product name.');
        }
        $this->OriginalProductName = $OriginalProductName;
    }
}