<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateItemProperties-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:UpdateItemProperties-Response
 * @subpackage Structs
 */
class UpdateItemProperties_Response extends ExtensibleDataContract
{
    /**
     * The TransactionSnapshot
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\TransactionSnapshot
     */
    public $TransactionSnapshot;
    /**
     * The PricingErrors
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValuePairOfintFailureInformationWTEG5wMr
     */
    public $PricingErrors;
    /**
     * Constructor method for UpdateItemProperties-Response
     * @uses UpdateItemProperties_Response::setTransactionSnapshot()
     * @uses UpdateItemProperties_Response::setPricingErrors()
     * @param \patest\StructType\TransactionSnapshot $transactionSnapshot
     * @param \patest\ArrayType\ArrayOfKeyValuePairOfintFailureInformationWTEG5wMr $pricingErrors
     */
    public function __construct(\patest\StructType\TransactionSnapshot $transactionSnapshot = null, \patest\ArrayType\ArrayOfKeyValuePairOfintFailureInformationWTEG5wMr $pricingErrors = null)
    {
        $this
            ->setTransactionSnapshot($transactionSnapshot)
            ->setPricingErrors($pricingErrors);
    }
    /**
     * Get TransactionSnapshot value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\TransactionSnapshot|null
     */
    public function getTransactionSnapshot()
    {
        return isset($this->TransactionSnapshot) ? $this->TransactionSnapshot : null;
    }
    /**
     * Set TransactionSnapshot value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\TransactionSnapshot $transactionSnapshot
     * @return \patest\StructType\UpdateItemProperties_Response
     */
    public function setTransactionSnapshot(\patest\StructType\TransactionSnapshot $transactionSnapshot = null)
    {
        if (is_null($transactionSnapshot) || (is_array($transactionSnapshot) && empty($transactionSnapshot))) {
            unset($this->TransactionSnapshot);
        } else {
            $this->TransactionSnapshot = $transactionSnapshot;
        }
        return $this;
    }
    /**
     * Get PricingErrors value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\ArrayType\ArrayOfKeyValuePairOfintFailureInformationWTEG5wMr|null
     */
    public function getPricingErrors()
    {
        return isset($this->PricingErrors) ? $this->PricingErrors : null;
    }
    /**
     * Set PricingErrors value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\ArrayType\ArrayOfKeyValuePairOfintFailureInformationWTEG5wMr $pricingErrors
     * @return \patest\StructType\UpdateItemProperties_Response
     */
    public function setPricingErrors(\patest\ArrayType\ArrayOfKeyValuePairOfintFailureInformationWTEG5wMr $pricingErrors = null)
    {
        if (is_null($pricingErrors) || (is_array($pricingErrors) && empty($pricingErrors))) {
            unset($this->PricingErrors);
        } else {
            $this->PricingErrors = $pricingErrors;
        }
        return $this;
    }
}
