-
-
Notifications
You must be signed in to change notification settings - Fork 0
ResolverInterface
github-actions edited this page Apr 10, 2026
·
2 revisions
Resolves license identifiers to their corresponding template filenames.
This interface checks whether a given license is supported and maps it to the appropriate license template file for content generation.
- Full name:
\FastForward\DevTools\License\ResolverInterface
Checks whether the given license identifier is supported.
public isSupported(string $license): boolParameters:
| Parameter | Type | Description |
|---|---|---|
$license |
string | The license identifier to check (e.g., "MIT", "Apache-2.0") |
Return Value:
True if the license is supported, false otherwise
Resolves a license identifier to its template filename.
public resolve(string $license): string|nullParameters:
| Parameter | Type | Description |
|---|---|---|
$license |
string | The license identifier to resolve |
Return Value:
The template filename if supported, or null if not