<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Place_Asset_in_Service_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Root element for the Response on the Put operation.
 * @subpackage Structs
 */
class Place_Asset_in_Service_ResponseType extends AbstractStructBase
{
    /**
     * The Business_Asset_Place_in_Service_Reference
     * Meta information extracted from the WSDL
     * - documentation: Business Asset class
     * - minOccurs: 0
     * @var \StructType\Business_AssetObjectType
     */
    public $Business_Asset_Place_in_Service_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Place_Asset_in_Service_ResponseType
     * @uses Place_Asset_in_Service_ResponseType::setBusiness_Asset_Place_in_Service_Reference()
     * @uses Place_Asset_in_Service_ResponseType::setVersion()
     * @param \StructType\Business_AssetObjectType $business_Asset_Place_in_Service_Reference
     * @param string $version
     */
    public function __construct(\StructType\Business_AssetObjectType $business_Asset_Place_in_Service_Reference = null, $version = null)
    {
        $this
            ->setBusiness_Asset_Place_in_Service_Reference($business_Asset_Place_in_Service_Reference)
            ->setVersion($version);
    }
    /**
     * Get Business_Asset_Place_in_Service_Reference value
     * @return \StructType\Business_AssetObjectType|null
     */
    public function getBusiness_Asset_Place_in_Service_Reference()
    {
        return $this->Business_Asset_Place_in_Service_Reference;
    }
    /**
     * Set Business_Asset_Place_in_Service_Reference value
     * @param \StructType\Business_AssetObjectType $business_Asset_Place_in_Service_Reference
     * @return \StructType\Place_Asset_in_Service_ResponseType
     */
    public function setBusiness_Asset_Place_in_Service_Reference(\StructType\Business_AssetObjectType $business_Asset_Place_in_Service_Reference = null)
    {
        $this->Business_Asset_Place_in_Service_Reference = $business_Asset_Place_in_Service_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Place_Asset_in_Service_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;
    }
}
