Skip to content

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

Methods

isSupported

Checks whether the given license identifier is supported.

public isSupported(string $license): bool

Parameters:

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


resolve

Resolves a license identifier to its template filename.

public resolve(string $license): string|null

Parameters:

Parameter Type Description
$license string The license identifier to resolve

Return Value:

The template filename if supported, or null if not


Clone this wiki locally