Метод json() для объектов схем
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