Quite some work done here.
This commit is contained in:
20
src/Game/Service/GameResponseService.php
Normal file
20
src/Game/Service/GameResponseService.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Game\Service;
|
||||
|
||||
class GameResponseService
|
||||
{
|
||||
public function getGameResponse(string $raw)
|
||||
{
|
||||
$info = json_decode($raw, true);
|
||||
|
||||
$message = $info['message'] ?? '';
|
||||
$ts = $info['ts'] ?? '';
|
||||
|
||||
|
||||
|
||||
$data = [];
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user