<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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