<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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