public function addSms(SmsActivity $activity): SmsActivity
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use SmsActivityApi::create() instead.', __METHOD__), E_USER_DEPRECATED);

        /** @var SmsActivityApi $apiHandler */
        $apiHandler = $this->closeIoApiWrapper->getSmsActivitiesApi();

        return $apiHandler->create($activity);
    }
public function addSms(SmsActivity $activity): SmsActivity
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use SmsActivityApi::create() instead.', __METHOD__), E_USER_DEPRECATED);

        /** @var SmsActivityApi $apiHandler */
        $apiHandler = $this->closeIoApiWrapper->getSmsActivitiesApi();

        return $apiHandler->create($activity);
    }
public function addSms ( SmsActivity $ activity ) : SmsActivity { @ trigger_error ( sprintf ( 'The %s() method is deprecated since version 0.8. Use SmsActivityApi::create() instead.' , __METHOD__ ) , E_USER_DEPRECATED ) ; /** @var SmsActivityApi $apiHandler */ $ apiHandler = $ this -> closeIoApiWrapper -> getSmsActivitiesApi ( ) ; return $ apiHandler -> create ( $ activity ) ; }
Creates a new SMS activity using the given information.

@param SmsActivity $activity The information of the activity to create

@return SmsActivity

@deprecated since version 0.8, to be removed in 0.9. Use SmsActivityApi::create() instead.
Creates a new SMS activity using the given information .