From dd0a3b692987b2f41c136a379260495b52b1ad2b Mon Sep 17 00:00:00 2001 From: Max Mekenya Date: Tue, 13 Sep 2016 02:16:42 +1000 Subject: [PATCH] Update GameTime.php --- src/Types/GameTime.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } }