# RouterIndexInterface

Chevere\Interfaces\Router\RouterIndexInterface

view source (opens new window)

# Extends

# Description

Describes the component in charge of indexing named routes.

# Methods

# withAddedRoutable

Return an instance with the specified $routable added.

Parameters

Return

self

This method MUST retain the state of the current instance, and return an instance that contains the specified $routable added.


# hasRouteName

Indicates whether the instance has a route identified by its $name.

Parameters

  • name: string

Return

bool


# getRouteIdentifier

Returns the route identifier for the given route $name.

Parameters

  • name: string

# hasGroup

Indicates whether the instance has routes for the given $group.

Parameters

  • group: string

Return

bool


# getGroupRouteNames

Returns an array containing the route names for the given $group.

Parameters

  • group: string

Return

array


# getRouteGroup

Returns the route group for the route identified by its $name.

Parameters

  • group: string

Return

string


# toArray

Returns an array, representing the object itself or some of its data/properties.

Return

array


Last Updated: 5/1/2021, 2:31:10 PM