diff --git a/src/Types/GameTime.php b/src/Types/GameTime.php index 126a050..636ef6c 100644 --- a/src/Types/GameTime.php +++ b/src/Types/GameTime.php @@ -14,6 +14,8 @@ class GameTime { + public $time; + public function __construct(ResponseInterface $response) { $json = json_decode((string)$response->getBody(), true, 512, JSON_BIGINT_AS_STRING); @@ -36,8 +38,7 @@ public function __construct(ResponseInterface $response) $load['years'] = intval($load['months'] / 12); $load['months'] = $load['months'] % 12; - $time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); + $this->time = Carbon::create($load['years'], $load['months'], $load['days'], $load['hours'], $load['minutes']); - return $time; } }