protected static function getMethods($plugin)
    {
        //Sets the class name
        $class = App::classname($plugin . '.Sitemap', 'Utility');

        //Gets all methods from the `Sitemap` class of the plugin
        $methods = get_child_methods($class);

        if (empty($methods)) {
            return [];
        }

        return collection($methods)->map(function ($method) use ($class) {
            return array_merge(compact('class'), ['name' => $method]);
        })->toList();
    }
protected static function getMethods($plugin)
    {
        //Sets the class name
        $class = App::classname($plugin . '.Sitemap', 'Utility');

        //Gets all methods from the `Sitemap` class of the plugin
        $methods = get_child_methods($class);

        if (empty($methods)) {
            return [];
        }

        return collection($methods)->map(function ($method) use ($class) {
            return array_merge(compact('class'), ['name' => $method]);
        })->toList();
    }
protected static function getMethods ( $ plugin ) { //Sets the class name $ class = App :: classname ( $ plugin . '.Sitemap' , 'Utility' ) ; //Gets all methods from the `Sitemap` class of the plugin $ methods = get_child_methods ( $ class ) ; if ( empty ( $ methods ) ) { return [ ] ; } return collection ( $ methods ) -> map ( function ( $ method ) use ( $ class ) { return array_merge ( compact ( 'class' ) , [ 'name' => $ method ] ) ; } ) -> toList ( ) ; }
Internal method to get methods from `Sitemap` classes
@param string $plugin Plugin
@return array Array with classes and methods names
Internal method to get methods from Sitemap classes