<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Submit_Procurement_Mass_Close_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Element for the Submit Procurement Mass Close Response
 * @subpackage Structs
 */
class Submit_Procurement_Mass_Close_ResponseType extends AbstractStructBase
{
    /**
     * The Procurement_Mass_Close_Reference
     * Meta information extracted from the WSDL
     * - documentation: Procurement Mass Close Reference
     * - minOccurs: 0
     * @var \StructType\Procurement_Document_Mass_ActionObjectType
     */
    public $Procurement_Mass_Close_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Submit_Procurement_Mass_Close_ResponseType
     * @uses Submit_Procurement_Mass_Close_ResponseType::setProcurement_Mass_Close_Reference()
     * @uses Submit_Procurement_Mass_Close_ResponseType::setVersion()
     * @param \StructType\Procurement_Document_Mass_ActionObjectType $procurement_Mass_Close_Reference
     * @param string $version
     */
    public function __construct(\StructType\Procurement_Document_Mass_ActionObjectType $procurement_Mass_Close_Reference = null, $version = null)
    {
        $this
            ->setProcurement_Mass_Close_Reference($procurement_Mass_Close_Reference)
            ->setVersion($version);
    }
    /**
     * Get Procurement_Mass_Close_Reference value
     * @return \StructType\Procurement_Document_Mass_ActionObjectType|null
     */
    public function getProcurement_Mass_Close_Reference()
    {
        return $this->Procurement_Mass_Close_Reference;
    }
    /**
     * Set Procurement_Mass_Close_Reference value
     * @param \StructType\Procurement_Document_Mass_ActionObjectType $procurement_Mass_Close_Reference
     * @return \StructType\Submit_Procurement_Mass_Close_ResponseType
     */
    public function setProcurement_Mass_Close_Reference(\StructType\Procurement_Document_Mass_ActionObjectType $procurement_Mass_Close_Reference = null)
    {
        $this->Procurement_Mass_Close_Reference = $procurement_Mass_Close_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Submit_Procurement_Mass_Close_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;
    }
}
