/** * Unbox a ObjectConfig object * * If the data being passed is an instance of ObjectConfig the data will be transformed to an associative array. * * @param ObjectConfig|mxied $data * @return array|mixed */ public static function unbox($data) { return $data instanceof ObjectConfig ? $data->toArray() : $data; }