Files
krolewskie-miody.pl/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/edi/Syntaxes/Ubl/Handlers/UblVersionIdHandler.php
2026-04-28 15:13:50 +02:00

31 lines
718 B
PHP

<?php
namespace WPO\IPS\EDI\Syntaxes\Ubl\Handlers;
use WPO\IPS\EDI\Syntaxes\Ubl\Abstracts\AbstractUblHandler;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class UblVersionIdHandler extends AbstractUblHandler {
/**
* Handle the data and return the formatted output.
*
* @param array $data The data to be handled.
* @param array $options Additional options for handling.
* @return array
*/
public function handle( array $data, array $options = array() ): array {
$ubl_version_id = array(
'name' => 'cbc:UBLVersionID',
'value' => '2.1',
);
$data[] = apply_filters( 'wpo_ips_edi_ubl_version_id', $ubl_version_id, $data, $options, $this );
return $data;
}
}