<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Put_Supplier_Invoice_Line_Additional_Data_RequestType
 * StructType
 * Meta information extracted from the WSDL
 * - documentation: Contains the Supplier Invoice Line additional data.
 * @subpackage Structs
 */
class Put_Supplier_Invoice_Line_Additional_Data_RequestType extends AbstractStructBase
{
    /**
     * The Supplier_Invoice_Line_Data
     * Meta information extracted from the WSDL
     * - documentation: Contains the Supplier Invoice Line additional data.
     * @var \StructType\Supplier_Invoice_Line_Additional_DataType
     */
    public $Supplier_Invoice_Line_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Put_Supplier_Invoice_Line_Additional_Data_RequestType
     * @uses Put_Supplier_Invoice_Line_Additional_Data_RequestType::setSupplier_Invoice_Line_Data()
     * @uses Put_Supplier_Invoice_Line_Additional_Data_RequestType::setVersion()
     * @param \StructType\Supplier_Invoice_Line_Additional_DataType $supplier_Invoice_Line_Data
     * @param string $version
     */
    public function __construct(\StructType\Supplier_Invoice_Line_Additional_DataType $supplier_Invoice_Line_Data = null, $version = null)
    {
        $this
            ->setSupplier_Invoice_Line_Data($supplier_Invoice_Line_Data)
            ->setVersion($version);
    }
    /**
     * Get Supplier_Invoice_Line_Data value
     * @return \StructType\Supplier_Invoice_Line_Additional_DataType|null
     */
    public function getSupplier_Invoice_Line_Data()
    {
        return $this->Supplier_Invoice_Line_Data;
    }
    /**
     * Set Supplier_Invoice_Line_Data value
     * @param \StructType\Supplier_Invoice_Line_Additional_DataType $supplier_Invoice_Line_Data
     * @return \StructType\Put_Supplier_Invoice_Line_Additional_Data_RequestType
     */
    public function setSupplier_Invoice_Line_Data(\StructType\Supplier_Invoice_Line_Additional_DataType $supplier_Invoice_Line_Data = null)
    {
        $this->Supplier_Invoice_Line_Data = $supplier_Invoice_Line_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Put_Supplier_Invoice_Line_Additional_Data_RequestType
     */
    public function setVersion($version = null)
    {
        // validation for constraint: string
        if (!is_null($version) && !is_string($version)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($version, true), gettype($version)), __LINE__);
        }
        $this->version = $version;
        return $this;
    }
}
