<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AddExternalCallControlProfileReq StructType
 * @subpackage Structs
 */
class AddExternalCallControlProfileReq extends APIRequest
{
    /**
     * The externalCallControlProfile
     * @var XExternalCallControlProfile
     */
    public $externalCallControlProfile;
    /**
     * Constructor method for AddExternalCallControlProfileReq
     * @uses AddExternalCallControlProfileReq::setExternalCallControlProfile()
     * @param XExternalCallControlProfile $externalCallControlProfile
     */
    public function __construct(XExternalCallControlProfile $externalCallControlProfile = null)
    {
        $this
            ->setExternalCallControlProfile($externalCallControlProfile);
    }
    /**
     * Get externalCallControlProfile value
     * @return XExternalCallControlProfile|null
     */
    public function getExternalCallControlProfile()
    {
        return $this->externalCallControlProfile;
    }
    /**
     * Set externalCallControlProfile value
     * @param XExternalCallControlProfile $externalCallControlProfile
     * @return AddExternalCallControlProfileReq
     */
    public function setExternalCallControlProfile(XExternalCallControlProfile $externalCallControlProfile = null)
    {
        $this->externalCallControlProfile = $externalCallControlProfile;
        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 AddExternalCallControlProfileReq
     */
    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__;
    }
}
