changed visibility on some functions
This commit is contained in:
+5
-5
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user