add interfaces for route and route collection
This commit is contained in:
4 files changed
+35
-3
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<?php namespace SokoWeb\Interfaces\Routing;
|
||||
|
||||
interface IRoute
|
||||
{
|
||||
public function getId(): string;
|
||||
|
||||
public function getHandler(): array;
|
||||
|
||||
public function generateLink(array $parameters = []): string;
|
||||
|
||||
public function testAgainst(array $path): ?array;
|
||||
}
|
||||
Reference in new issue
Block a user