MiddlewareDefinition
The scanned contents of one #[Middleware] attribute, plus the class it was found on and where it was discovered — mirrors Quiote\Routing\Compiler\RouteDefinition’s role for #[Route].
Synopsis
Section titled “Synopsis”final class MiddlewareDefinition
| Since | 1.0.0 |
| Source | Middleware/Compiler/MiddlewareDefinition.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$after | ?``string | readonly. |
$before | ?``string | readonly. |
$enabled | bool | readonly. |
$fqcn | string | readonly. |
$phase | string | readonly. |
$priority | int | readonly. |
$sourceRef | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $fqcn, string $phase, int $priority, ?string $before, ?string $after, bool $enabled, string $sourceRef): mixed
| Parameter | Type | Description |
|---|---|---|
$fqcn | string | |
$phase | string | |
$priority | int | |
$before | ?``string | |
$after | ?``string | |
$enabled | bool | |
$sourceRef | string |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
shortName(): string | Short class name, used to resolve before/after references given as bare class names. |
shortName()
Section titled “shortName()”public function shortName(): string
Short class name, used to resolve before/after references given as bare class names.
Returns string