<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetTransactionAccessControlDataResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetTransactionAccessControlDataResponse
 * @subpackage Structs
 */
class GetTransactionAccessControlDataResponse extends ExtensibleDataContract
{
    /**
     * The AvailableAccessCardsPerOwner
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidArrayOfBasketItemAccessCardDatacX68gwDR
     */
    public $AvailableAccessCardsPerOwner;
    /**
     * The ItemsAccessControlData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfBasketItemAccessControlData
     */
    public $ItemsAccessControlData;
    /**
     * Constructor method for GetTransactionAccessControlDataResponse
     * @uses GetTransactionAccessControlDataResponse::setAvailableAccessCardsPerOwner()
     * @uses GetTransactionAccessControlDataResponse::setItemsAccessControlData()
     * @param \patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidArrayOfBasketItemAccessCardDatacX68gwDR $availableAccessCardsPerOwner
     * @param \patest\ArrayType\ArrayOfBasketItemAccessControlData $itemsAccessControlData
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidArrayOfBasketItemAccessCardDatacX68gwDR $availableAccessCardsPerOwner = null, \patest\ArrayType\ArrayOfBasketItemAccessControlData $itemsAccessControlData = null)
    {
        $this
            ->setAvailableAccessCardsPerOwner($availableAccessCardsPerOwner)
            ->setItemsAccessControlData($itemsAccessControlData);
    }
    /**
     * Get AvailableAccessCardsPerOwner 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\ArrayOfKeyValuePairOfArrayOfguidArrayOfBasketItemAccessCardDatacX68gwDR|null
     */
    public function getAvailableAccessCardsPerOwner()
    {
        return isset($this->AvailableAccessCardsPerOwner) ? $this->AvailableAccessCardsPerOwner : null;
    }
    /**
     * Set AvailableAccessCardsPerOwner 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\ArrayOfKeyValuePairOfArrayOfguidArrayOfBasketItemAccessCardDatacX68gwDR $availableAccessCardsPerOwner
     * @return \patest\StructType\GetTransactionAccessControlDataResponse
     */
    public function setAvailableAccessCardsPerOwner(\patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidArrayOfBasketItemAccessCardDatacX68gwDR $availableAccessCardsPerOwner = null)
    {
        if (is_null($availableAccessCardsPerOwner) || (is_array($availableAccessCardsPerOwner) && empty($availableAccessCardsPerOwner))) {
            unset($this->AvailableAccessCardsPerOwner);
        } else {
            $this->AvailableAccessCardsPerOwner = $availableAccessCardsPerOwner;
        }
        return $this;
    }
    /**
     * Get ItemsAccessControlData 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\ArrayOfBasketItemAccessControlData|null
     */
    public function getItemsAccessControlData()
    {
        return isset($this->ItemsAccessControlData) ? $this->ItemsAccessControlData : null;
    }
    /**
     * Set ItemsAccessControlData 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\ArrayOfBasketItemAccessControlData $itemsAccessControlData
     * @return \patest\StructType\GetTransactionAccessControlDataResponse
     */
    public function setItemsAccessControlData(\patest\ArrayType\ArrayOfBasketItemAccessControlData $itemsAccessControlData = null)
    {
        if (is_null($itemsAccessControlData) || (is_array($itemsAccessControlData) && empty($itemsAccessControlData))) {
            unset($this->ItemsAccessControlData);
        } else {
            $this->ItemsAccessControlData = $itemsAccessControlData;
        }
        return $this;
    }
}
