<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ActivityReportItem_V11 StructType
 * @subpackage Structs
 */
class ActivityReportItem_V11 extends ActivityReportItem_V10
{
    /**
     * The IsValidated
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $IsValidated;
    /**
     * Constructor method for ActivityReportItem_V11
     * @uses ActivityReportItem_V11::setIsValidated()
     * @param bool $isValidated
     */
    public function __construct($isValidated = null)
    {
        $this
            ->setIsValidated($isValidated);
    }
    /**
     * Get IsValidated value
     * @return bool
     */
    public function getIsValidated()
    {
        return $this->IsValidated;
    }
    /**
     * Set IsValidated value
     * @param bool $isValidated
     * @return \StructType\ActivityReportItem_V11
     */
    public function setIsValidated($isValidated = null)
    {
        // validation for constraint: boolean
        if (!is_null($isValidated) && !is_bool($isValidated)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isValidated, true), gettype($isValidated)), __LINE__);
        }
        $this->IsValidated = $isValidated;
        return $this;
    }
}
