<?php
if ( ! defined( 'ABSPATH' ) ) exit;

class PBUAIV_Proforma extends PBUAIV_Document {
    protected string $type  = 'proforma';
    protected string $label = '';

    public function __construct( WC_Order $order ) {
        $this->label = __( 'Proforma Invoice', 'pb-invoicing-system' );
        parent::__construct( $order );
    }
    protected function get_type()  : string { return 'proforma'; }
    protected function get_label() : string { return __( 'Proforma Invoice', 'pb-invoicing-system' ); }

    protected function compile() : array {
        $data = parent::compile();
        $data['watermark'] = __( 'PROFORMA', 'pb-invoicing-system' );
        $data['label']     = __( 'Proforma Invoice', 'pb-invoicing-system' );
        return $data;
    }
}
