<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Put_Expense_Company_Default_RequestType StructType
 * Meta information extracted from the WSDL
 * - documentation: Expense Company Default Data
 * @subpackage Structs
 */
class Put_Expense_Company_Default_RequestType extends AbstractStructBase
{
    /**
     * The Expense_Company_Default_Data
     * Meta information extracted from the WSDL
     * - documentation: Expense Company Default Data
     * - minOccurs: 0
     * @var \StructType\Expense_Company_Default_DataType
     */
    public $Expense_Company_Default_Data;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Put_Expense_Company_Default_RequestType
     * @uses Put_Expense_Company_Default_RequestType::setExpense_Company_Default_Data()
     * @uses Put_Expense_Company_Default_RequestType::setVersion()
     * @param \StructType\Expense_Company_Default_DataType $expense_Company_Default_Data
     * @param string $version
     */
    public function __construct(\StructType\Expense_Company_Default_DataType $expense_Company_Default_Data = null, $version = null)
    {
        $this
            ->setExpense_Company_Default_Data($expense_Company_Default_Data)
            ->setVersion($version);
    }
    /**
     * Get Expense_Company_Default_Data value
     * @return \StructType\Expense_Company_Default_DataType|null
     */
    public function getExpense_Company_Default_Data()
    {
        return $this->Expense_Company_Default_Data;
    }
    /**
     * Set Expense_Company_Default_Data value
     * @param \StructType\Expense_Company_Default_DataType $expense_Company_Default_Data
     * @return \StructType\Put_Expense_Company_Default_RequestType
     */
    public function setExpense_Company_Default_Data(\StructType\Expense_Company_Default_DataType $expense_Company_Default_Data = null)
    {
        $this->Expense_Company_Default_Data = $expense_Company_Default_Data;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Put_Expense_Company_Default_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;
    }
}
