<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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