1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
namespace Catapult;
/**
* Set of functions to convert
* Catapult functions to and from
* native PHP objects, arrays, etc
*
* TODO: move date based functions from Base
*
*/
final class Converter extends BaseUtilities {
/* in some cases we need to
* convert a flat json
* object into its array
* form. This prevents
* extra overhead
* in later seles
*
* @param json: one layer json object
*/
public static function ToArray($json)
{
return get_object_vars($json);
}
}