<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AreBasePricesMandatoryForPriceListResponse StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:AreBasePricesMandatoryForPriceListResponse
 * @subpackage Structs
 */
class AreBasePricesMandatoryForPriceListResponse extends ExtensibleDataContract
{
    /**
     * The AreBasePricesMandatoryForPriceList
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var bool
     */
    public $AreBasePricesMandatoryForPriceList;
    /**
     * Constructor method for AreBasePricesMandatoryForPriceListResponse
     * @uses AreBasePricesMandatoryForPriceListResponse::setAreBasePricesMandatoryForPriceList()
     * @param bool $areBasePricesMandatoryForPriceList
     */
    public function __construct($areBasePricesMandatoryForPriceList = null)
    {
        $this
            ->setAreBasePricesMandatoryForPriceList($areBasePricesMandatoryForPriceList);
    }
    /**
     * Get AreBasePricesMandatoryForPriceList value
     * @return bool|null
     */
    public function getAreBasePricesMandatoryForPriceList()
    {
        return $this->AreBasePricesMandatoryForPriceList;
    }
    /**
     * Set AreBasePricesMandatoryForPriceList value
     * @param bool $areBasePricesMandatoryForPriceList
     * @return \patest\StructType\AreBasePricesMandatoryForPriceListResponse
     */
    public function setAreBasePricesMandatoryForPriceList($areBasePricesMandatoryForPriceList = null)
    {
        // validation for constraint: boolean
        if (!is_null($areBasePricesMandatoryForPriceList) && !is_bool($areBasePricesMandatoryForPriceList)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($areBasePricesMandatoryForPriceList, true), gettype($areBasePricesMandatoryForPriceList)), __LINE__);
        }
        $this->AreBasePricesMandatoryForPriceList = $areBasePricesMandatoryForPriceList;
        return $this;
    }
}
