<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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