mirror of
https://github.com/anthonyaxenov/atol-online.git
synced 2024-11-22 16:14:34 +00:00
Метод json() для объектов схем
This commit is contained in:
parent
025351a8ae
commit
5277db62fd
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user