public static function exportObjectMethods($object) { $methods = []; foreach (get_class_methods($object) as $method) { if ($method[0] === '_') { continue; } $methods[$method] = [$object, $method]; } return $methods; }