Файл: vendor/laravel/framework/src/Illuminate/Routing/RouteCollectionInterface.php
Строк: 126
<?php
namespace IlluminateRouting;
use IlluminateHttpRequest;
interface RouteCollectionInterface
{
/**
* Add a Route instance to the collection.
*
* @param IlluminateRoutingRoute $route
* @return IlluminateRoutingRoute
*/
public function add(Route $route);
/**
* Refresh the name look-up table.
*
* This is done in case any names are fluently defined or if routes are overwritten.
*
* @return void
*/
public function refreshNameLookups();
/**
* Refresh the action look-up table.
*
* This is done in case any actions are overwritten with new controllers.
*
* @return void
*/
public function refreshActionLookups();
/**
* Find the first route matching a given request.
*
* @param IlluminateHttpRequest $request
* @return IlluminateRoutingRoute
*
* @throws SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException
* @throws SymfonyComponentHttpKernelExceptionNotFoundHttpException
*/
public function match(Request $request);
/**
* Get routes from the collection by method.
*
* @param string|null $method
* @return IlluminateRoutingRoute[]
*/
public function get($method = null);
/**
* Determine if the route collection contains a given named route.
*
* @param string $name
* @return bool
*/
public function hasNamedRoute($name);
/**
* Get a route instance by its name.
*
* @param string $name
* @return IlluminateRoutingRoute|null
*/
public function getByName($name);
/**
* Get a route instance by its controller action.
*
* @param string $action
* @return IlluminateRoutingRoute|null
*/
public function getByAction($action);
/**
* Get all of the routes in the collection.
*
* @return IlluminateRoutingRoute[]
*/
public function getRoutes();
/**
* Get all of the routes keyed by their HTTP verb / method.
*
* @return array
*/
public function getRoutesByMethod();
/**
* Get all of the routes keyed by their name.
*
* @return IlluminateRoutingRoute[]
*/
public function getRoutesByName();
}