diff --git a/src/CoreParser.php b/src/CoreParser.php index c7f1759..42980b7 100644 --- a/src/CoreParser.php +++ b/src/CoreParser.php @@ -347,7 +347,7 @@ class CoreParser { * @param string $payload * @return AppStartResponse */ - public static function parseAppStart(string $payload): AppStartResponse { + protected static function parseAppStart(string $payload): AppStartResponse { $m = new AppStartResponse(); $m->code = ord($payload[0]); @@ -368,7 +368,7 @@ class CoreParser { * @param string $payload * @return AdvertPathResponse */ - public static function parseAdvertPathResponse(string $payload): AdvertPathResponse { + protected static function parseAdvertPathResponse(string $payload): AdvertPathResponse { $m = new AdvertPathResponse(); $m->code = ord($payload[0]); @@ -384,7 +384,7 @@ class CoreParser { * @param string $payload * @return CodeStatusTypeCoreResponse|CodeStatusTypeRadioResponse|CodeStatusTypePacketResponse */ - public static function parseCodeStatusResponse(string $payload): CodeStatusTypeCoreResponse|CodeStatusTypeRadioResponse|CodeStatusTypePacketResponse { + protected static function parseCodeStatusResponse(string $payload): CodeStatusTypeCoreResponse|CodeStatusTypeRadioResponse|CodeStatusTypePacketResponse { $m = null; switch(ord($payload[1])) { @@ -426,7 +426,7 @@ class CoreParser { * @param string $payload * @return DeviceInfoResponse */ - public static function parseDeviceInfoResponse(string $payload): DeviceInfoResponse { + protected static function parseDeviceInfoResponse(string $payload): DeviceInfoResponse { $m = new DeviceInfoResponse(); $m->code = ord($payload[0]); $m->firmware_version = ord($payload[1]); @@ -447,7 +447,7 @@ class CoreParser { * @param string $payload * @return ChannelResponse */ - public static function parseChannelInfoResponse(string $payload): ChannelResponse { + protected static function parseChannelInfoResponse(string $payload): ChannelResponse { $m = new ChannelResponse(); $m->code = ord($payload[0]);