<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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