<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Put_Business_Entity_Contact_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Element containing Put Business Entity Contact Response Data
 * @subpackage Structs
 */
class Put_Business_Entity_Contact_ResponseType extends AbstractStructBase
{
    /**
     * The Business_Entity_Contact_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference to an existing Business Entity Contact
     * - minOccurs: 0
     * @var \StructType\Business_Entity_ContactObjectType
     */
    public $Business_Entity_Contact_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Put_Business_Entity_Contact_ResponseType
     * @uses Put_Business_Entity_Contact_ResponseType::setBusiness_Entity_Contact_Reference()
     * @uses Put_Business_Entity_Contact_ResponseType::setVersion()
     * @param \StructType\Business_Entity_ContactObjectType $business_Entity_Contact_Reference
     * @param string $version
     */
    public function __construct(\StructType\Business_Entity_ContactObjectType $business_Entity_Contact_Reference = null, $version = null)
    {
        $this
            ->setBusiness_Entity_Contact_Reference($business_Entity_Contact_Reference)
            ->setVersion($version);
    }
    /**
     * Get Business_Entity_Contact_Reference value
     * @return \StructType\Business_Entity_ContactObjectType|null
     */
    public function getBusiness_Entity_Contact_Reference()
    {
        return $this->Business_Entity_Contact_Reference;
    }
    /**
     * Set Business_Entity_Contact_Reference value
     * @param \StructType\Business_Entity_ContactObjectType $business_Entity_Contact_Reference
     * @return \StructType\Put_Business_Entity_Contact_ResponseType
     */
    public function setBusiness_Entity_Contact_Reference(\StructType\Business_Entity_ContactObjectType $business_Entity_Contact_Reference = null)
    {
        $this->Business_Entity_Contact_Reference = $business_Entity_Contact_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Put_Business_Entity_Contact_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;
    }
}
