<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Put_Requesting_Entity_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Put Requesting Entity Response
 * @subpackage Structs
 */
class Put_Requesting_Entity_ResponseType extends AbstractStructBase
{
    /**
     * The Requesting_Entity_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference to existing Requesting Entity
     * - minOccurs: 0
     * @var \StructType\Requesting_EntityObjectType
     */
    public $Requesting_Entity_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Put_Requesting_Entity_ResponseType
     * @uses Put_Requesting_Entity_ResponseType::setRequesting_Entity_Reference()
     * @uses Put_Requesting_Entity_ResponseType::setVersion()
     * @param \StructType\Requesting_EntityObjectType $requesting_Entity_Reference
     * @param string $version
     */
    public function __construct(\StructType\Requesting_EntityObjectType $requesting_Entity_Reference = null, $version = null)
    {
        $this
            ->setRequesting_Entity_Reference($requesting_Entity_Reference)
            ->setVersion($version);
    }
    /**
     * Get Requesting_Entity_Reference value
     * @return \StructType\Requesting_EntityObjectType|null
     */
    public function getRequesting_Entity_Reference()
    {
        return $this->Requesting_Entity_Reference;
    }
    /**
     * Set Requesting_Entity_Reference value
     * @param \StructType\Requesting_EntityObjectType $requesting_Entity_Reference
     * @return \StructType\Put_Requesting_Entity_ResponseType
     */
    public function setRequesting_Entity_Reference(\StructType\Requesting_EntityObjectType $requesting_Entity_Reference = null)
    {
        $this->Requesting_Entity_Reference = $requesting_Entity_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Put_Requesting_Entity_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;
    }
}
