<?php

namespace \Losc\CucmBundle\Model\Webservice\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for XImeEnrolledPatternGroup StructType
 * @subpackage Structs
 */
class XImeEnrolledPatternGroup extends AbstractStructBase
{
    /**
     * The name
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - maxLength: 50
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: false
     * @var string
     */
    public $name;
    /**
     * The description
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * @var string
     */
    public $description;
    /**
     * The fallbackProfileName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $fallbackProfileName;
    /**
     * The isPatternAllAlias
     * Meta information extracted from the WSDL
     * - base: xsd:string
     * - default: false
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: false
     * - pattern: (t)|(f)|(true)|(false)|(0)|(1)
     * @var string
     */
    public $isPatternAllAlias;
    /**
     * Constructor method for XImeEnrolledPatternGroup
     * @uses XImeEnrolledPatternGroup::setName()
     * @uses XImeEnrolledPatternGroup::setDescription()
     * @uses XImeEnrolledPatternGroup::setFallbackProfileName()
     * @uses XImeEnrolledPatternGroup::setIsPatternAllAlias()
     * @param string $name
     * @param string $description
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $fallbackProfileName
     * @param string $isPatternAllAlias
     */
    public function __construct($name = null, $description = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $fallbackProfileName = null, $isPatternAllAlias = 'false')
    {
        $this
            ->setName($name)
            ->setDescription($description)
            ->setFallbackProfileName($fallbackProfileName)
            ->setIsPatternAllAlias($isPatternAllAlias);
    }
    /**
     * Get name value
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * Set name value
     * @param string $name
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XImeEnrolledPatternGroup
     */
    public function setName($name = null)
    {
        $this->name = $name;
        return $this;
    }
    /**
     * Get description value
     * @return string|null
     */
    public function getDescription()
    {
        return $this->description;
    }
    /**
     * Set description value
     * @param string $description
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XImeEnrolledPatternGroup
     */
    public function setDescription($description = null)
    {
        $this->description = $description;
        return $this;
    }
    /**
     * Get fallbackProfileName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XFkType|null
     */
    public function getFallbackProfileName()
    {
        return isset($this->fallbackProfileName) ? $this->fallbackProfileName : null;
    }
    /**
     * Set fallbackProfileName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $fallbackProfileName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XImeEnrolledPatternGroup
     */
    public function setFallbackProfileName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $fallbackProfileName = null)
    {
        if (is_null($fallbackProfileName) || (is_array($fallbackProfileName) && empty($fallbackProfileName))) {
            unset($this->fallbackProfileName);
        } else {
            $this->fallbackProfileName = $fallbackProfileName;
        }
        return $this;
    }
    /**
     * Get isPatternAllAlias value
     * @return string|null
     */
    public function getIsPatternAllAlias()
    {
        return $this->isPatternAllAlias;
    }
    /**
     * Set isPatternAllAlias value
     * @param string $isPatternAllAlias
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XImeEnrolledPatternGroup
     */
    public function setIsPatternAllAlias($isPatternAllAlias = 'false')
    {
        $this->isPatternAllAlias = $isPatternAllAlias;
        return $this;
    }
}
