Метод json() для объектов схем
This commit is contained in:
@@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user