<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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