<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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