src/Soap/TurboSmsSoapAdapter.php
private function tryResolveErrorReason(string $message): string
    {
        $key = $this->responseParser->parse($message);

        if ($key === 'invalid_phone') {
            return ErrorReasons::INVALID_PHONE_NUMBER;
        }

        return ErrorReasons::UNKNOWN;
    }
private function tryResolveErrorReason(string $message): string
    {
        $key = $this->responseParser->parse($message);

        if ($key === 'invalid_phone') {
            return ErrorReasons::INVALID_PHONE_NUMBER;
        }

        return ErrorReasons::UNKNOWN;
    }
private function tryResolveErrorReason ( string $ message ) : string { $ key = $ this -> responseParser -> parse ( $ message ) ; if ( $ key === 'invalid_phone' ) { return ErrorReasons :: INVALID_PHONE_NUMBER ; } return ErrorReasons :: UNKNOWN ; }
Try to resolve error reason

@param string $message

@return string
Try to resolve error reason