<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for getChecklistTemplateList StructType
 * @subpackage Structs
 */
class GetChecklistTemplateList extends AbstractStructBase
{
    /**
     * The idChecklistTemplate
     * Meta information extracted from the WSDL
     * - maxOccurs: unbounded
     * - minOccurs: 0
     * @var int[]
     */
    public $idChecklistTemplate;
    /**
     * Constructor method for getChecklistTemplateList
     * @uses GetChecklistTemplateList::setIdChecklistTemplate()
     * @param int[] $idChecklistTemplate
     */
    public function __construct(array $idChecklistTemplate = array())
    {
        $this
            ->setIdChecklistTemplate($idChecklistTemplate);
    }
    /**
     * Get idChecklistTemplate value
     * @return int[]|null
     */
    public function getIdChecklistTemplate()
    {
        return $this->idChecklistTemplate;
    }
    /**
     * Set idChecklistTemplate value
     * @param int[] $idChecklistTemplate
     * @return GetChecklistTemplateList
     */
    public function setIdChecklistTemplate(array $idChecklistTemplate = array())
    {
        $this->idChecklistTemplate = $idChecklistTemplate;
        return $this;
    }
    /**
     * Add item to idChecklistTemplate value
     * @throws \InvalidArgumentException
     * @param int $item
     * @return GetChecklistTemplateList
     */
    public function addToIdChecklistTemplate($item)
    {
        $this->idChecklistTemplate[] = $item;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return GetChecklistTemplateList
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
