trait HasRoutesTrait (View source)

Allow objects to have routes

Methods

getRoutes()

Get routes.

void
addRoute(RouteInterface $route)

Add a route.

void
removeRoute(RouteInterface $route)

Remove a route.

Details

RouteInterface[] getRoutes()

Get routes.

Return Value

RouteInterface[]

void addRoute(RouteInterface $route)

Add a route.

Parameters

RouteInterface $route

Return Value

void

void removeRoute(RouteInterface $route)

Remove a route.

Parameters

RouteInterface $route

Return Value

void