private function parseResponseMessage($msg) {
        if (in_array($msg->status->groupId, [
            self::STATUS_GROUPS_UNDELIVERABLE, self::STATUS_GROUPS_EXPIRED,
            self::STATUS_GROUPS_REJECTED])) {
            $code = $msg->status->id;
            $text = sprintf("Error id=%d (groupId=%d). Message: %s",
                    $msg->status->id,
                    $msg->status->groupId,
                    $msg->status->description);
            $this->addError(new SendingError($msg->to, $code, $text));
            return false;
        }
        return true;
    }
private function parseResponseMessage($msg) {
        if (in_array($msg->status->groupId, [
            self::STATUS_GROUPS_UNDELIVERABLE, self::STATUS_GROUPS_EXPIRED,
            self::STATUS_GROUPS_REJECTED])) {
            $code = $msg->status->id;
            $text = sprintf("Error id=%d (groupId=%d). Message: %s",
                    $msg->status->id,
                    $msg->status->groupId,
                    $msg->status->description);
            $this->addError(new SendingError($msg->to, $code, $text));
            return false;
        }
        return true;
    }
private function parseResponseMessage ( $ msg ) { if ( in_array ( $ msg -> status -> groupId , [ self :: STATUS_GROUPS_UNDELIVERABLE , self :: STATUS_GROUPS_EXPIRED , self :: STATUS_GROUPS_REJECTED ] ) ) { $ code = $ msg -> status -> id ; $ text = sprintf ( "Error id=%d (groupId=%d). Message: %s" , $ msg -> status -> id , $ msg -> status -> groupId , $ msg -> status -> description ) ; $ this -> addError ( new SendingError ( $ msg -> to , $ code , $ text ) ) ; return false ; } return true ; }
Parses response message. Optionally register errors.

@link https://dev.infobip.com/docs/send-sms-response Description of the response message
@param Object $msg Message object according to {@link https://dev.infobip.com/docs/send-sms-response}
@return boolean True if there are no errors
Parses response message . Optionally register errors .