Files
LesRecettesDePapis/src/Http/Route.php

31 lines
731 B
PHP
Raw Normal View History

2026-03-20 11:40:11 +01:00
<?php
namespace App\Http;
/**
* Permet de définir une route précise.
*/
final class Route {
public private(set) string $routeUrl;
public private(set) string $routeName;
public private(set) string $routeController;
public private(set) string $routeAction;
public private(set) array $routeMethods;
public function __construct(
string $routeUrl,
string $routeName,
string $routeController,
string $routeAction,
array $routeMethods
){
$this->routeUrl = $routeUrl;
$this->routeName = $routeName;
$this->routeController = $routeController;
$this->routeAction = $routeAction;
$this->routeMethods = $routeMethods;
}
}