Add xlvask_parser_h_nger helper class for handling specific XLVask product parsing

This commit is contained in:
Jepp9350
2025-06-24 08:38:35 +02:00
parent 29aa63bb08
commit dacb7ef4e0
@@ -0,0 +1,28 @@
<?php
namespace helpers;
use Exception;
use objects\products_o;
class xlvask_parser_h_nger extends xlvask_product_parser
{
use xlvask_product_parser_t;
public function __construct()
{
$this->setup('Hænger');
}
/**
* @inheritDoc
* @throws Exception
*/
protected function parse(xlvask_wash_item $wash_item, xlvask_usage_log $xlvask_usage_log): products_o
{
// For some reason, in XLVask the primary product is stored as vask_h_nger in some cases,
// This is a workaround to handle that case. (Since the functionality is exactly the same as // xlvask_parser_stor_bil)
return (new xlvask_parser_stor_bil())->parseProduct(...func_get_args());
}
}