<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Suspend_Asset_Depreciation_RequestType StructType
 * Meta information extracted from the WSDL
 * - documentation: Element containing data needed to suspend asset depreciation
 * @subpackage Structs
 */
class Suspend_Asset_Depreciation_RequestType extends AbstractStructBase
{
    /**
     * The Suspend_Asset_Depreciation_Data
     * Meta information extracted from the WSDL
     * - documentation: Contains the items needed to suspend asset depreciation.
     * - minOccurs: 0
     * @var \StructType\Suspend_Asset_Depreciation_for_WWS_DataType
     */
    public $Suspend_Asset_Depreciation_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Suspend_Asset_Depreciation_RequestType
     * @uses Suspend_Asset_Depreciation_RequestType::setSuspend_Asset_Depreciation_Data()
     * @uses Suspend_Asset_Depreciation_RequestType::setVersion()
     * @param \StructType\Suspend_Asset_Depreciation_for_WWS_DataType $suspend_Asset_Depreciation_Data
     * @param string $version
     */
    public function __construct(\StructType\Suspend_Asset_Depreciation_for_WWS_DataType $suspend_Asset_Depreciation_Data = null, $version = null)
    {
        $this
            ->setSuspend_Asset_Depreciation_Data($suspend_Asset_Depreciation_Data)
            ->setVersion($version);
    }
    /**
     * Get Suspend_Asset_Depreciation_Data value
     * @return \StructType\Suspend_Asset_Depreciation_for_WWS_DataType|null
     */
    public function getSuspend_Asset_Depreciation_Data()
    {
        return $this->Suspend_Asset_Depreciation_Data;
    }
    /**
     * Set Suspend_Asset_Depreciation_Data value
     * @param \StructType\Suspend_Asset_Depreciation_for_WWS_DataType $suspend_Asset_Depreciation_Data
     * @return \StructType\Suspend_Asset_Depreciation_RequestType
     */
    public function setSuspend_Asset_Depreciation_Data(\StructType\Suspend_Asset_Depreciation_for_WWS_DataType $suspend_Asset_Depreciation_Data = null)
    {
        $this->Suspend_Asset_Depreciation_Data = $suspend_Asset_Depreciation_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Suspend_Asset_Depreciation_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;
    }
}
