Метод json() для объектов схем

pull/2/head
Anthony Axenov 2020-04-17 21:11:21 +08:00
parent 025351a8ae
commit 5277db62fd
1 changed files with 8 additions and 0 deletions

View File

@ -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());
}
}