From 5277db62fda36937d81d0fea40ef59c4a2fe5702 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Fri, 17 Apr 2020 21:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D1=82=D0=BE=D0=B4=20json()=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20=D1=81=D1=85=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AtolOnline/Api/Schemas/AtolSchema.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/AtolOnline/Api/Schemas/AtolSchema.php b/src/AtolOnline/Api/Schemas/AtolSchema.php index d7a4f09..5ff6c5c 100644 --- a/src/AtolOnline/Api/Schemas/AtolSchema.php +++ b/src/AtolOnline/Api/Schemas/AtolSchema.php @@ -12,4 +12,12 @@ abstract class AtolSchema return static::$json ?? static::$json = json_decode(file_get_contents(static::$URL)); } + + /** + * @return false|string + */ + public static function json() + { + return json_encode(static::get()); + } } \ No newline at end of file