<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * Cancel_Procurement_Card_Transaction_Verification_RequestType StructType
 * Meta information extracted from the WSDL
 * - documentation: Cancel Procurement Card Transaction Verification Transaction
 * @subpackage Structs
 */
class Cancel_Procurement_Card_Transaction_Verification_RequestType extends AbstractStructBase
{
    /**
     * The Procurement_Card_Transaction_Verification_Reference
     * Meta information extracted from the WSDL
     * - documentation: This Procurement Card Transaction Verification is not Cancelable. Verify that the document is not Approved or it hasn't been Canceled already.
     * @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_RequestType
     * @uses Cancel_Procurement_Card_Transaction_Verification_RequestType::setProcurement_Card_Transaction_Verification_Reference()
     * @uses Cancel_Procurement_Card_Transaction_Verification_RequestType::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_RequestType
     */
    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_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;
    }
}
