<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for TicketExtendedInfo StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:TicketExtendedInfo
 * @subpackage Structs
 */
class TicketExtendedInfo extends AbstractStructBase
{
    /**
     * The Details
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfstringboolean
     */
    public $Details;
    /**
     * The TicketData
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Ticketing_TicketWithVersions
     */
    public $TicketData;
    /**
     * Constructor method for TicketExtendedInfo
     * @uses TicketExtendedInfo::setDetails()
     * @uses TicketExtendedInfo::setTicketData()
     * @param \patest\ArrayType\ArrayOfKeyValueOfstringboolean $details
     * @param \patest\StructType\Ticketing_TicketWithVersions $ticketData
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfstringboolean $details = null, \patest\StructType\Ticketing_TicketWithVersions $ticketData = null)
    {
        $this
            ->setDetails($details)
            ->setTicketData($ticketData);
    }
    /**
     * Get Details 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\ArrayOfKeyValueOfstringboolean|null
     */
    public function getDetails()
    {
        return isset($this->Details) ? $this->Details : null;
    }
    /**
     * Set Details 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\ArrayOfKeyValueOfstringboolean $details
     * @return \patest\StructType\TicketExtendedInfo
     */
    public function setDetails(\patest\ArrayType\ArrayOfKeyValueOfstringboolean $details = null)
    {
        if (is_null($details) || (is_array($details) && empty($details))) {
            unset($this->Details);
        } else {
            $this->Details = $details;
        }
        return $this;
    }
    /**
     * Get TicketData 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\StructType\Ticketing_TicketWithVersions|null
     */
    public function getTicketData()
    {
        return isset($this->TicketData) ? $this->TicketData : null;
    }
    /**
     * Set TicketData 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\StructType\Ticketing_TicketWithVersions $ticketData
     * @return \patest\StructType\TicketExtendedInfo
     */
    public function setTicketData(\patest\StructType\Ticketing_TicketWithVersions $ticketData = null)
    {
        if (is_null($ticketData) || (is_array($ticketData) && empty($ticketData))) {
            unset($this->TicketData);
        } else {
            $this->TicketData = $ticketData;
        }
        return $this;
    }
}
