<?php

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

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for XRecordingProfile StructType
 * @subpackage Structs
 */
class XRecordingProfile 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 recorderDestination
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: false
     * @var string
     */
    public $recorderDestination;
    /**
     * The recordingCssName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * - nillable: true
     * @var \\Losc\CucmBundle\Model\Webservice\StructType\XFkType
     */
    public $recordingCssName;
    /**
     * Constructor method for XRecordingProfile
     * @uses XRecordingProfile::setName()
     * @uses XRecordingProfile::setRecorderDestination()
     * @uses XRecordingProfile::setRecordingCssName()
     * @param string $name
     * @param string $recorderDestination
     * @param \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $recordingCssName
     */
    public function __construct($name = null, $recorderDestination = null, \\Losc\CucmBundle\Model\Webservice\StructType\XFkType $recordingCssName = null)
    {
        $this
            ->setName($name)
            ->setRecorderDestination($recorderDestination)
            ->setRecordingCssName($recordingCssName);
    }
    /**
     * Get name value
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * Set name value
     * @param string $name
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XRecordingProfile
     */
    public function setName($name = null)
    {
        $this->name = $name;
        return $this;
    }
    /**
     * Get recorderDestination value
     * @return string
     */
    public function getRecorderDestination()
    {
        return $this->recorderDestination;
    }
    /**
     * Set recorderDestination value
     * @param string $recorderDestination
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XRecordingProfile
     */
    public function setRecorderDestination($recorderDestination = null)
    {
        $this->recorderDestination = $recorderDestination;
        return $this;
    }
    /**
     * Get recordingCssName 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 getRecordingCssName()
    {
        return isset($this->recordingCssName) ? $this->recordingCssName : null;
    }
    /**
     * Set recordingCssName 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 $recordingCssName
     * @return \\Losc\CucmBundle\Model\Webservice\StructType\XRecordingProfile
     */
    public function setRecordingCssName(\\Losc\CucmBundle\Model\Webservice\StructType\XFkType $recordingCssName = null)
    {
        if (is_null($recordingCssName) || (is_array($recordingCssName) && empty($recordingCssName))) {
            unset($this->recordingCssName);
        } else {
            $this->recordingCssName = $recordingCssName;
        }
        return $this;
    }
}
