add interfaces for route and route collection

This commit is contained in:
bence committed 2023-04-19 22:15:49 +02:00
1 parent 3893ed2231
commit 0f87a9c6e3
4 files changed
+35 -3

No files matched your search

+12
View File
@@ -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;
}