<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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