<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * Cancel_Procurement_Card_Transaction_Verification_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Cancel Procurement Card Transaction Verification Response
 * @subpackage Structs
 */
class Cancel_Procurement_Card_Transaction_Verification_ResponseType extends AbstractStructBase
{
    /**
     * The Procurement_Card_Transaction_Verification_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference to an existing PCard {+4}
     * - minOccurs: 0
     * @var \StructType\Procurement_Card_Transaction_VerificationObjectType
     */
    public $Procurement_Card_Transaction_Verification_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for
     * Cancel_Procurement_Card_Transaction_Verification_ResponseType
     * @uses Cancel_Procurement_Card_Transaction_Verification_ResponseType::setProcurement_Card_Transaction_Verification_Reference()
     * @uses Cancel_Procurement_Card_Transaction_Verification_ResponseType::setVersion()
     * @param \StructType\Procurement_Card_Transaction_VerificationObjectType $procurement_Card_Transaction_Verification_Reference
     * @param string $version
     */
    public function __construct(\StructType\Procurement_Card_Transaction_VerificationObjectType $procurement_Card_Transaction_Verification_Reference = null, $version = null)
    {
        $this
            ->setProcurement_Card_Transaction_Verification_Reference($procurement_Card_Transaction_Verification_Reference)
            ->setVersion($version);
    }
    /**
     * Get Procurement_Card_Transaction_Verification_Reference value
     * @return \StructType\Procurement_Card_Transaction_VerificationObjectType|null
     */
    public function getProcurement_Card_Transaction_Verification_Reference()
    {
        return $this->Procurement_Card_Transaction_Verification_Reference;
    }
    /**
     * Set Procurement_Card_Transaction_Verification_Reference value
     * @param \StructType\Procurement_Card_Transaction_VerificationObjectType $procurement_Card_Transaction_Verification_Reference
     * @return \StructType\Cancel_Procurement_Card_Transaction_Verification_ResponseType
     */
    public function setProcurement_Card_Transaction_Verification_Reference(\StructType\Procurement_Card_Transaction_VerificationObjectType $procurement_Card_Transaction_Verification_Reference = null)
    {
        $this->Procurement_Card_Transaction_Verification_Reference = $procurement_Card_Transaction_Verification_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Cancel_Procurement_Card_Transaction_Verification_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;
    }
}
