<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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