Add xlvask_parser_afstr_mning helper for handling drainage-related product parsing

- Introduced the `xlvask_parser_afstr_mning.php` class extending `xlvask_product_parser`.
- Updated `xlvask_helpers.php` to include the new parser.
This commit is contained in:
Jeppe Bundgaard
2025-09-30 15:54:43 +02:00
parent dfc7738a62
commit e69d328105
2 changed files with 27 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
namespace helpers;
use Exception;
use objects\products_o;
class xlvask_parser_afstr_mning extends xlvask_product_parser
{
use xlvask_product_parser_t;
public function __construct()
{
$this->setup('Afstrømning');
}
/**
* @inheritDoc
* @throws Exception
*/
protected function parse(xlvask_wash_item $wash_item, xlvask_usage_log $xlvask_usage_log): products_o
{
return (new products_o())->select(64); // Other irrelevant product ID
}
}
@@ -58,6 +58,7 @@ require_once WD . '/modules/xlvask/helpers/xlvask_parser_ht_dysebom.php';
require_once WD . '/modules/xlvask/helpers/xlvask_parser_ht_b_rstel_s.php';
require_once WD . '/modules/xlvask/helpers/xlvask_parser_ht_turbo.php';
require_once WD . '/modules/xlvask/helpers/xlvask_parser_ikke_b_rster_p_kabinen.php';
require_once WD . '/modules/xlvask/helpers/xlvask_parser_afstr_mning.php';
use helpers\xlvask_cache;
use helpers\xlvask_create_customer;
use helpers\xlvask_customer;