-
Notifications
You must be signed in to change notification settings - Fork 0
API Routers RouteAttributesParser
Christophe SAUVEUR edited this page Nov 23, 2024
·
2 revisions
class RouteAttributesParser
Since 1.0
public function __construct(ReflectionClass|ReflectionMethod $reflectedElement)
Since 1.0
Name | Type | Description |
---|---|---|
$reflectedElement |
`ReflectionClass | ReflectionMethod` |
public function getAttributeValue(string $class, ?string $defaultValue = null): ?string
Since 1.0
Name | Type | Description |
---|---|---|
$class |
string |
|
$defaultValue |
`null | string` |
null|string
Exception | Reason |
---|---|
DataValidatorException |
public function hasAttribute(string $class)
Since 1.0
Name | Type | Description |
---|---|---|
$class |
string |
bool
public function hasAttributeWithValue(string $class, string $value): bool
Since 1.0
Name | Type | Description |
---|---|---|
$class |
string |
|
$value |
string |
bool
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license