<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UpdateMobilityReq StructType
 * Meta informations extracted from the WSDL
 * - documentation: It is mandatory to give either handoffNumber or DTMFNumber tag in the request. Both can't be null.
 * @subpackage Structs
 */
class UpdateMobilityReq extends AbstractStructBase
{
    /**
     * The handoffNumber
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var XFkType
     */
    public $handoffNumber;
    /**
     * The DTMFNumber
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var XFkType
     */
    public $DTMFNumber;
    /**
     * The newHandoffNumber
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $newHandoffNumber;
    /**
     * The newHandoffPartitionName
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var XFkType
     */
    public $newHandoffPartitionName;
    /**
     * The newDTMFNumber
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $newDTMFNumber;
    /**
     * The newDTMFPartitionName
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var XFkType
     */
    public $newDTMFPartitionName;
    /**
     * Constructor method for UpdateMobilityReq
     * @uses UpdateMobilityReq::setHandoffNumber()
     * @uses UpdateMobilityReq::setDTMFNumber()
     * @uses UpdateMobilityReq::setNewHandoffNumber()
     * @uses UpdateMobilityReq::setNewHandoffPartitionName()
     * @uses UpdateMobilityReq::setNewDTMFNumber()
     * @uses UpdateMobilityReq::setNewDTMFPartitionName()
     * @param XFkType $handoffNumber
     * @param XFkType $dTMFNumber
     * @param string $newHandoffNumber
     * @param XFkType $newHandoffPartitionName
     * @param string $newDTMFNumber
     * @param XFkType $newDTMFPartitionName
     */
    public function __construct(XFkType $handoffNumber = null, XFkType $dTMFNumber = null, $newHandoffNumber = null, XFkType $newHandoffPartitionName = null, $newDTMFNumber = null, XFkType $newDTMFPartitionName = null)
    {
        $this
            ->setHandoffNumber($handoffNumber)
            ->setDTMFNumber($dTMFNumber)
            ->setNewHandoffNumber($newHandoffNumber)
            ->setNewHandoffPartitionName($newHandoffPartitionName)
            ->setNewDTMFNumber($newDTMFNumber)
            ->setNewDTMFPartitionName($newDTMFPartitionName);
    }
    /**
     * Get handoffNumber value
     * @return XFkType|null
     */
    public function getHandoffNumber()
    {
        return $this->handoffNumber;
    }
    /**
     * Set handoffNumber value
     * @param XFkType $handoffNumber
     * @return UpdateMobilityReq
     */
    public function setHandoffNumber(XFkType $handoffNumber = null)
    {
        $this->handoffNumber = $handoffNumber;
        return $this;
    }
    /**
     * Get DTMFNumber value
     * @return XFkType|null
     */
    public function getDTMFNumber()
    {
        return $this->DTMFNumber;
    }
    /**
     * Set DTMFNumber value
     * @param XFkType $dTMFNumber
     * @return UpdateMobilityReq
     */
    public function setDTMFNumber(XFkType $dTMFNumber = null)
    {
        $this->DTMFNumber = $dTMFNumber;
        return $this;
    }
    /**
     * Get newHandoffNumber value
     * @return string|null
     */
    public function getNewHandoffNumber()
    {
        return $this->newHandoffNumber;
    }
    /**
     * Set newHandoffNumber value
     * @param string $newHandoffNumber
     * @return UpdateMobilityReq
     */
    public function setNewHandoffNumber($newHandoffNumber = null)
    {
        // validation for constraint: string
        if (!is_null($newHandoffNumber) && !is_string($newHandoffNumber)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($newHandoffNumber)), __LINE__);
        }
        $this->newHandoffNumber = $newHandoffNumber;
        return $this;
    }
    /**
     * Get newHandoffPartitionName value
     * @return XFkType|null
     */
    public function getNewHandoffPartitionName()
    {
        return $this->newHandoffPartitionName;
    }
    /**
     * Set newHandoffPartitionName value
     * @param XFkType $newHandoffPartitionName
     * @return UpdateMobilityReq
     */
    public function setNewHandoffPartitionName(XFkType $newHandoffPartitionName = null)
    {
        $this->newHandoffPartitionName = $newHandoffPartitionName;
        return $this;
    }
    /**
     * Get newDTMFNumber value
     * @return string|null
     */
    public function getNewDTMFNumber()
    {
        return $this->newDTMFNumber;
    }
    /**
     * Set newDTMFNumber value
     * @param string $newDTMFNumber
     * @return UpdateMobilityReq
     */
    public function setNewDTMFNumber($newDTMFNumber = null)
    {
        // validation for constraint: string
        if (!is_null($newDTMFNumber) && !is_string($newDTMFNumber)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($newDTMFNumber)), __LINE__);
        }
        $this->newDTMFNumber = $newDTMFNumber;
        return $this;
    }
    /**
     * Get newDTMFPartitionName value
     * @return XFkType|null
     */
    public function getNewDTMFPartitionName()
    {
        return $this->newDTMFPartitionName;
    }
    /**
     * Set newDTMFPartitionName value
     * @param XFkType $newDTMFPartitionName
     * @return UpdateMobilityReq
     */
    public function setNewDTMFPartitionName(XFkType $newDTMFPartitionName = null)
    {
        $this->newDTMFPartitionName = $newDTMFPartitionName;
        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 UpdateMobilityReq
     */
    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__;
    }
}
