<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Cancel_Netting_Transaction_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Cancel Netting Transaction Response
 * @subpackage Structs
 */
class Cancel_Netting_Transaction_ResponseType extends AbstractStructBase
{
    /**
     * The Netting_Transaction_Reference
     * Meta information extracted from the WSDL
     * - documentation: Netting Transaction Reference
     * - 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 Cancel_Netting_Transaction_ResponseType
     * @uses Cancel_Netting_Transaction_ResponseType::setNetting_Transaction_Reference()
     * @uses Cancel_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\Cancel_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\Cancel_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;
    }
}
