<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for QueryGroupOfTransactions-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:QueryGroupOfTransactions-Response
 * @subpackage Structs
 */
class QueryGroupOfTransactions_Response extends ExtensibleDataContract
{
    /**
     * The TransactionSnapshots
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfQueryTransaction_Response
     */
    public $TransactionSnapshots;
    /**
     * Constructor method for QueryGroupOfTransactions-Response
     * @uses QueryGroupOfTransactions_Response::setTransactionSnapshots()
     * @param \patest\ArrayType\ArrayOfQueryTransaction_Response $transactionSnapshots
     */
    public function __construct(\patest\ArrayType\ArrayOfQueryTransaction_Response $transactionSnapshots = null)
    {
        $this
            ->setTransactionSnapshots($transactionSnapshots);
    }
    /**
     * Get TransactionSnapshots 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\ArrayOfQueryTransaction_Response|null
     */
    public function getTransactionSnapshots()
    {
        return isset($this->TransactionSnapshots) ? $this->TransactionSnapshots : null;
    }
    /**
     * Set TransactionSnapshots 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\ArrayOfQueryTransaction_Response $transactionSnapshots
     * @return \patest\StructType\QueryGroupOfTransactions_Response
     */
    public function setTransactionSnapshots(\patest\ArrayType\ArrayOfQueryTransaction_Response $transactionSnapshots = null)
    {
        if (is_null($transactionSnapshots) || (is_array($transactionSnapshots) && empty($transactionSnapshots))) {
            unset($this->TransactionSnapshots);
        } else {
            $this->TransactionSnapshots = $transactionSnapshots;
        }
        return $this;
    }
}
