<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Ticketing.BulkCancelResalesOperation.Request
 * StructType
 * @subpackage Structs
 */
class BizAction_Ticketing_BulkCancelResalesOperation_Request extends BizAction_Foundation_BulkOperation_Request
{
    /**
     * The PaymentMethodIds
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\PaymentMethodIds
     */
    public $PaymentMethodIds;
    /**
     * Constructor method for BizAction.Ticketing.BulkCancelResalesOperation.Request
     * @uses BizAction_Ticketing_BulkCancelResalesOperation_Request::setPaymentMethodIds()
     * @param \patest\StructType\PaymentMethodIds $paymentMethodIds
     */
    public function __construct(\patest\StructType\PaymentMethodIds $paymentMethodIds = null)
    {
        $this
            ->setPaymentMethodIds($paymentMethodIds);
    }
    /**
     * Get PaymentMethodIds 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\PaymentMethodIds|null
     */
    public function getPaymentMethodIds()
    {
        return isset($this->PaymentMethodIds) ? $this->PaymentMethodIds : null;
    }
    /**
     * Set PaymentMethodIds 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\PaymentMethodIds $paymentMethodIds
     * @return \patest\StructType\BizAction_Ticketing_BulkCancelResalesOperation_Request
     */
    public function setPaymentMethodIds(\patest\StructType\PaymentMethodIds $paymentMethodIds = null)
    {
        if (is_null($paymentMethodIds) || (is_array($paymentMethodIds) && empty($paymentMethodIds))) {
            unset($this->PaymentMethodIds);
        } else {
            $this->PaymentMethodIds = $paymentMethodIds;
        }
        return $this;
    }
}
