Skip to content

Commit 1ac1858

Browse files
[FrameworkBundle][RemoteEvent][Routing][Scheduler] Add PHPDoc to attributes properties
1 parent b597482 commit 1ac1858

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Attribute/Route.php

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,21 @@ class Route
2626
private array $schemes;
2727

2828
/**
29-
* @param array<string|\Stringable> $requirements
30-
* @param string[]|string $methods
31-
* @param string[]|string $schemes
29+
* @param string|array<string,string>|null $path The route path (i.e. "/user/login")
30+
* @param string|null $name The route name (i.e. "app_user_login")
31+
* @param array<string|\Stringable> $requirements Requirements for the route attributes, @see https://symfony.com/doc/current/routing.html#parameters-validation
32+
* @param array<string, mixed> $options Options for the route (i.e. ['prefix' => '/api'])
33+
* @param array<string, mixed> $defaults Default values for the route attributes and query parameters
34+
* @param string|null $host The host for which this route should be active (i.e. "localhost")
35+
* @param string|string[] $methods The list of HTTP methods allowed by this route
36+
* @param string|string[] $schemes The list of schemes allowed by this route (i.e. "https")
37+
* @param string|null $condition An expression that must evaluate to true for the route to be matched, @see https://symfony.com/doc/current/routing.html#matching-expressions
38+
* @param int|null $priority The priority of the route if multiple ones are defined for the same path
39+
* @param string|null $locale The locale accepted by the route
40+
* @param string|null $format The format returned by the route (i.e. "json", "xml")
41+
* @param bool|null $utf8 Whether the route accepts UTF-8 in its parameters
42+
* @param bool|null $stateless Whether the route is defined as stateless or stateful, @see https://symfony.com/doc/current/routing.html#stateless-routes
43+
* @param string|null $env The env in which the route is defined (i.e. "dev", "test", "prod")
3244
*/
3345
public function __construct(
3446
string|array $path = null,

0 commit comments

Comments
 (0)