<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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