<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.OrderAttachmentDocument StructType
 * @subpackage Structs
 */
class Printing_OrderAttachmentDocument extends Printing_PrintableDocument
{
    /**
     * The IsQuotation
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var bool
     */
    public $IsQuotation;
    /**
     * Constructor method for Printing.OrderAttachmentDocument
     * @uses Printing_OrderAttachmentDocument::setIsQuotation()
     * @param bool $isQuotation
     */
    public function __construct($isQuotation = null)
    {
        $this
            ->setIsQuotation($isQuotation);
    }
    /**
     * Get IsQuotation 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 bool|null
     */
    public function getIsQuotation()
    {
        return isset($this->IsQuotation) ? $this->IsQuotation : null;
    }
    /**
     * Set IsQuotation 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 bool $isQuotation
     * @return \patest\StructType\Printing_OrderAttachmentDocument
     */
    public function setIsQuotation($isQuotation = null)
    {
        // validation for constraint: boolean
        if (!is_null($isQuotation) && !is_bool($isQuotation)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isQuotation, true), gettype($isQuotation)), __LINE__);
        }
        if (is_null($isQuotation) || (is_array($isQuotation) && empty($isQuotation))) {
            unset($this->IsQuotation);
        } else {
            $this->IsQuotation = $isQuotation;
        }
        return $this;
    }
}
