mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 22:42:14 +00:00
1c515119b4
- Ensure that request-method is always lowercase. - Fixed spaces instead of tabs to comply with PSR-2.
60 lines
1.1 KiB
PHP
60 lines
1.1 KiB
PHP
<?php
|
|
namespace Pecee\SimpleRouter\Route;
|
|
|
|
use Pecee\Http\Request;
|
|
|
|
interface IGroupRoute extends IRoute
|
|
{
|
|
/**
|
|
* Method called to check if a domain matches
|
|
*
|
|
* @param Request $request
|
|
* @return bool
|
|
*/
|
|
public function matchDomain(Request $request);
|
|
|
|
/**
|
|
* Set exception-handlers for group
|
|
*
|
|
* @param array $handlers
|
|
* @return static $this
|
|
*/
|
|
public function setExceptionHandlers(array $handlers);
|
|
|
|
/**
|
|
* Get exception-handlers for group
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getExceptionHandlers();
|
|
|
|
/**
|
|
* Get domains for domain.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getDomains();
|
|
|
|
/**
|
|
* Set allowed domains for group.
|
|
*
|
|
* @param array $domains
|
|
* @return $this
|
|
*/
|
|
public function setDomains(array $domains);
|
|
|
|
/**
|
|
* Set prefix that child-routes will inherit.
|
|
*
|
|
* @param string $prefix
|
|
* @return string
|
|
*/
|
|
public function setPrefix($prefix);
|
|
|
|
/**
|
|
* Get prefix.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPrefix();
|
|
} |