mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 23:22:13 +00:00
5cd6cab801
- Fixed issue causing default-namespace to add duplicate namespace when using type-hints (issue: #561). - Fixed phpstan issues. - Tests: Fixed TestRouter not resetting namespace upon reset. - Tests: Added NSController (namespace controller) class. - Tests: added test for class hint + default namespace case. - Composer: added phpstan support + configuration. - Composer: updated phpunit version.
22 lines
394 B
PHP
22 lines
394 B
PHP
<?php
|
|
|
|
namespace Pecee\SimpleRouter\Route;
|
|
|
|
interface IControllerRoute extends ILoadableRoute
|
|
{
|
|
/**
|
|
* Get controller class-name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getController(): string;
|
|
|
|
/**
|
|
* Set controller class-name
|
|
*
|
|
* @param string $controller
|
|
* @return static
|
|
*/
|
|
public function setController(string $controller): self;
|
|
|
|
} |