public static function make($agentName = null, $tempId = null)
    {
        $sms = new self();
        $sms->type(self::TYPE_SMS);
        if (is_array($agentName)) {
            $sms->template($agentName);
        } elseif ($agentName && is_string($agentName)) {
            if ($tempId === null) {
                $sms->content($agentName);
            } elseif (is_string($tempId) || is_int($tempId)) {
                $sms->template($agentName, "$tempId");
            }
        }

        return $sms;
    }
public static function make($agentName = null, $tempId = null)
    {
        $sms = new self();
        $sms->type(self::TYPE_SMS);
        if (is_array($agentName)) {
            $sms->template($agentName);
        } elseif ($agentName && is_string($agentName)) {
            if ($tempId === null) {
                $sms->content($agentName);
            } elseif (is_string($tempId) || is_int($tempId)) {
                $sms->template($agentName, "$tempId");
            }
        }

        return $sms;
    }
public static function make ( $ agentName = null , $ tempId = null ) { $ sms = new self ( ) ; $ sms -> type ( self :: TYPE_SMS ) ; if ( is_array ( $ agentName ) ) { $ sms -> template ( $ agentName ) ; } elseif ( $ agentName && is_string ( $ agentName ) ) { if ( $ tempId === null ) { $ sms -> content ( $ agentName ) ; } elseif ( is_string ( $ tempId ) || is_int ( $ tempId ) ) { $ sms -> template ( $ agentName , "$tempId" ) ; } } return $ sms ; }
Create a instance for send sms.

@param mixed $agentName
@param mixed $tempId

@return Sms
Create a instance for send sms .