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

This commit is contained in:
Anthony Axenov 2020-04-17 21:11:21 +08:00
parent 025351a8ae
commit 5277db62fd

View File

@ -12,4 +12,12 @@ abstract class AtolSchema
return static::$json return static::$json
?? static::$json = json_decode(file_get_contents(static::$URL)); ?? static::$json = json_decode(file_get_contents(static::$URL));
} }
/**
* @return false|string
*/
public static function json()
{
return json_encode(static::get());
}
} }