src/RestPHP/Response/Types/Text.php
private function getHypertextString($routes = [])
    {
        // Check if we have routes
        if (!$routes) {
            return '';
        }

        // Loop through the routes and add them to the string
        $str = "links: \n";
        foreach ($routes as $name => $route) {
            $str .= "\trel: {$name}. href: {$route}.\n";
        }
        return $str;
    }
private function getHypertextString($routes = [])
    {
        // Check if we have routes
        if (!$routes) {
            return '';
        }

        // Loop through the routes and add them to the string
        $str = "links: \n";
        foreach ($routes as $name => $route) {
            $str .= "\trel: {$name}. href: {$route}.\n";
        }
        return $str;
    }
private function getHypertextString ( $ routes = [ ] ) { // Check if we have routes if ( ! $ routes ) { return '' ; } // Loop through the routes and add them to the string $ str = "links: \n" ; foreach ( $ routes as $ name => $ route ) { $ str .= "\trel: {$name}. href: {$route}.\n" ; } return $ str ; }
Transforms the hypertext routes into a string.

@param array $routes The hypertext routes.

@return string The hypertext routes transformed into a string.
Transforms the hypertext routes into a string .