<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Submit_Netting_Transaction_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Element containing Submit Netting Transaction Response Data
 * @subpackage Structs
 */
class Submit_Netting_Transaction_ResponseType extends AbstractStructBase
{
    /**
     * The Netting_Transaction_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference to an existing Netting Transaction
     * - minOccurs: 0
     * @var \StructType\Netting_TransactionObjectType
     */
    public $Netting_Transaction_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Submit_Netting_Transaction_ResponseType
     * @uses Submit_Netting_Transaction_ResponseType::setNetting_Transaction_Reference()
     * @uses Submit_Netting_Transaction_ResponseType::setVersion()
     * @param \StructType\Netting_TransactionObjectType $netting_Transaction_Reference
     * @param string $version
     */
    public function __construct(\StructType\Netting_TransactionObjectType $netting_Transaction_Reference = null, $version = null)
    {
        $this
            ->setNetting_Transaction_Reference($netting_Transaction_Reference)
            ->setVersion($version);
    }
    /**
     * Get Netting_Transaction_Reference value
     * @return \StructType\Netting_TransactionObjectType|null
     */
    public function getNetting_Transaction_Reference()
    {
        return $this->Netting_Transaction_Reference;
    }
    /**
     * Set Netting_Transaction_Reference value
     * @param \StructType\Netting_TransactionObjectType $netting_Transaction_Reference
     * @return \StructType\Submit_Netting_Transaction_ResponseType
     */
    public function setNetting_Transaction_Reference(\StructType\Netting_TransactionObjectType $netting_Transaction_Reference = null)
    {
        $this->Netting_Transaction_Reference = $netting_Transaction_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Submit_Netting_Transaction_ResponseType
     */
    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;
    }
}
