<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Cancel_Request_for_Quote_Response_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Element that shows the RFQ Response Document worked upon.
 * @subpackage Structs
 */
class Cancel_Request_for_Quote_Response_ResponseType extends AbstractStructBase
{
    /**
     * The Request_for_Quote_Response_Reference
     * Meta information extracted from the WSDL
     * - documentation: Request for Quote Response Reference
     * - minOccurs: 0
     * @var \StructType\Request_for_Quote_ResponseObjectType
     */
    public $Request_for_Quote_Response_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Cancel_Request_for_Quote_Response_ResponseType
     * @uses Cancel_Request_for_Quote_Response_ResponseType::setRequest_for_Quote_Response_Reference()
     * @uses Cancel_Request_for_Quote_Response_ResponseType::setVersion()
     * @param \StructType\Request_for_Quote_ResponseObjectType $request_for_Quote_Response_Reference
     * @param string $version
     */
    public function __construct(\StructType\Request_for_Quote_ResponseObjectType $request_for_Quote_Response_Reference = null, $version = null)
    {
        $this
            ->setRequest_for_Quote_Response_Reference($request_for_Quote_Response_Reference)
            ->setVersion($version);
    }
    /**
     * Get Request_for_Quote_Response_Reference value
     * @return \StructType\Request_for_Quote_ResponseObjectType|null
     */
    public function getRequest_for_Quote_Response_Reference()
    {
        return $this->Request_for_Quote_Response_Reference;
    }
    /**
     * Set Request_for_Quote_Response_Reference value
     * @param \StructType\Request_for_Quote_ResponseObjectType $request_for_Quote_Response_Reference
     * @return \StructType\Cancel_Request_for_Quote_Response_ResponseType
     */
    public function setRequest_for_Quote_Response_Reference(\StructType\Request_for_Quote_ResponseObjectType $request_for_Quote_Response_Reference = null)
    {
        $this->Request_for_Quote_Response_Reference = $request_for_Quote_Response_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Cancel_Request_for_Quote_Response_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;
    }
}
