Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\Common\Interfaces; |
| 3 | |
| 4 | use Apie\Common\Lists\UrlPrefixList; |
| 5 | use Apie\Core\Enums\RequestMethod; |
| 6 | use Apie\Core\ValueObjects\UrlRouteDefinition; |
| 7 | |
| 8 | /** |
| 9 | * Route definition interface. This is used internally used by Apie so it can be converted to whatever route library |
| 10 | * Apie is used in. |
| 11 | */ |
| 12 | interface HasRouteDefinition |
| 13 | { |
| 14 | public function getMethod(): RequestMethod; |
| 15 | public function getUrl(): UrlRouteDefinition; |
| 16 | /** |
| 17 | * @return class-string<object> |
| 18 | */ |
| 19 | public function getController(): string; |
| 20 | /** |
| 21 | * @return array<string, mixed> |
| 22 | */ |
| 23 | public function getRouteAttributes(): array; |
| 24 | public function getOperationId(): string; |
| 25 | public function getUrlPrefixes(): UrlPrefixList; |
| 26 | } |