<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Submit_Prepaid_Spend_Amortization_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Prepaid Spend Amortization Reference
 * @subpackage Structs
 */
class Submit_Prepaid_Spend_Amortization_ResponseType extends AbstractStructBase
{
    /**
     * The Prepaid_Spend_Amortization_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference to an existing Prepaid Spend Amortization
     * - minOccurs: 0
     * @var \StructType\Unique_IdentifierObjectType
     */
    public $Prepaid_Spend_Amortization_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Submit_Prepaid_Spend_Amortization_ResponseType
     * @uses Submit_Prepaid_Spend_Amortization_ResponseType::setPrepaid_Spend_Amortization_Reference()
     * @uses Submit_Prepaid_Spend_Amortization_ResponseType::setVersion()
     * @param \StructType\Unique_IdentifierObjectType $prepaid_Spend_Amortization_Reference
     * @param string $version
     */
    public function __construct(\StructType\Unique_IdentifierObjectType $prepaid_Spend_Amortization_Reference = null, $version = null)
    {
        $this
            ->setPrepaid_Spend_Amortization_Reference($prepaid_Spend_Amortization_Reference)
            ->setVersion($version);
    }
    /**
     * Get Prepaid_Spend_Amortization_Reference value
     * @return \StructType\Unique_IdentifierObjectType|null
     */
    public function getPrepaid_Spend_Amortization_Reference()
    {
        return $this->Prepaid_Spend_Amortization_Reference;
    }
    /**
     * Set Prepaid_Spend_Amortization_Reference value
     * @param \StructType\Unique_IdentifierObjectType $prepaid_Spend_Amortization_Reference
     * @return \StructType\Submit_Prepaid_Spend_Amortization_ResponseType
     */
    public function setPrepaid_Spend_Amortization_Reference(\StructType\Unique_IdentifierObjectType $prepaid_Spend_Amortization_Reference = null)
    {
        $this->Prepaid_Spend_Amortization_Reference = $prepaid_Spend_Amortization_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Submit_Prepaid_Spend_Amortization_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;
    }
}
