<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CustomRecordTypeOnlineForms StructType
 * @subpackage Structs
 */
class CustomRecordTypeOnlineForms extends AbstractStructBase
{
    /**
     * The onlineFormName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $onlineFormName;
    /**
     * The isOnline
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $isOnline;
    /**
     * The templateName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $templateName;
    /**
     * Constructor method for CustomRecordTypeOnlineForms
     * @uses CustomRecordTypeOnlineForms::setOnlineFormName()
     * @uses CustomRecordTypeOnlineForms::setIsOnline()
     * @uses CustomRecordTypeOnlineForms::setTemplateName()
     * @param string $onlineFormName
     * @param string $isOnline
     * @param string $templateName
     */
    public function __construct($onlineFormName = null, $isOnline = null, $templateName = null)
    {
        $this
            ->setOnlineFormName($onlineFormName)
            ->setIsOnline($isOnline)
            ->setTemplateName($templateName);
    }
    /**
     * Get onlineFormName value
     * @return string|null
     */
    public function getOnlineFormName()
    {
        return $this->onlineFormName;
    }
    /**
     * Set onlineFormName value
     * @param string $onlineFormName
     * @return \StructType\CustomRecordTypeOnlineForms
     */
    public function setOnlineFormName($onlineFormName = null)
    {
        // validation for constraint: string
        if (!is_null($onlineFormName) && !is_string($onlineFormName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($onlineFormName, true), gettype($onlineFormName)), __LINE__);
        }
        $this->onlineFormName = $onlineFormName;
        return $this;
    }
    /**
     * Get isOnline value
     * @return string|null
     */
    public function getIsOnline()
    {
        return $this->isOnline;
    }
    /**
     * Set isOnline value
     * @param string $isOnline
     * @return \StructType\CustomRecordTypeOnlineForms
     */
    public function setIsOnline($isOnline = null)
    {
        // validation for constraint: string
        if (!is_null($isOnline) && !is_string($isOnline)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($isOnline, true), gettype($isOnline)), __LINE__);
        }
        $this->isOnline = $isOnline;
        return $this;
    }
    /**
     * Get templateName value
     * @return string|null
     */
    public function getTemplateName()
    {
        return $this->templateName;
    }
    /**
     * Set templateName value
     * @param string $templateName
     * @return \StructType\CustomRecordTypeOnlineForms
     */
    public function setTemplateName($templateName = null)
    {
        // validation for constraint: string
        if (!is_null($templateName) && !is_string($templateName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($templateName, true), gettype($templateName)), __LINE__);
        }
        $this->templateName = $templateName;
        return $this;
    }
}
