<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Change_Depreciation_Accounting_Status_RequestType
 * StructType
 * Meta information extracted from the WSDL
 * - documentation: Element containing the data Element for the Override Depreciation Period Web Service
 * @subpackage Structs
 */
class Change_Depreciation_Accounting_Status_RequestType extends AbstractStructBase
{
    /**
     * The Override_Depreciation_Period_Status_Data
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var \StructType\Override_Depreciation_Period_Status_DataType
     */
    public $Override_Depreciation_Period_Status_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Change_Depreciation_Accounting_Status_RequestType
     * @uses Change_Depreciation_Accounting_Status_RequestType::setOverride_Depreciation_Period_Status_Data()
     * @uses Change_Depreciation_Accounting_Status_RequestType::setVersion()
     * @param \StructType\Override_Depreciation_Period_Status_DataType $override_Depreciation_Period_Status_Data
     * @param string $version
     */
    public function __construct(\StructType\Override_Depreciation_Period_Status_DataType $override_Depreciation_Period_Status_Data = null, $version = null)
    {
        $this
            ->setOverride_Depreciation_Period_Status_Data($override_Depreciation_Period_Status_Data)
            ->setVersion($version);
    }
    /**
     * Get Override_Depreciation_Period_Status_Data value
     * @return \StructType\Override_Depreciation_Period_Status_DataType|null
     */
    public function getOverride_Depreciation_Period_Status_Data()
    {
        return $this->Override_Depreciation_Period_Status_Data;
    }
    /**
     * Set Override_Depreciation_Period_Status_Data value
     * @param \StructType\Override_Depreciation_Period_Status_DataType $override_Depreciation_Period_Status_Data
     * @return \StructType\Change_Depreciation_Accounting_Status_RequestType
     */
    public function setOverride_Depreciation_Period_Status_Data(\StructType\Override_Depreciation_Period_Status_DataType $override_Depreciation_Period_Status_Data = null)
    {
        $this->Override_Depreciation_Period_Status_Data = $override_Depreciation_Period_Status_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Change_Depreciation_Accounting_Status_RequestType
     */
    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;
    }
}
