Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/**
6 * Fast Forward Development Tools for PHP projects.
7 *
8 * This file is part of fast-forward/dev-tools project.
9 *
10 * @author   Felipe SayĆ£o Lobato Abreu <github@mentordosnerds.com>
11 * @license  https://opensource.org/licenses/MIT MIT License
12 *
13 * @see      https://github.com/php-fast-forward/
14 * @see      https://github.com/php-fast-forward/dev-tools
15 * @see      https://github.com/php-fast-forward/dev-tools/issues
16 * @see      https://php-fast-forward.github.io/dev-tools/
17 * @see      https://datatracker.ietf.org/doc/html/rfc2119
18 */
19
20namespace FastForward\DevTools\License;
21
22/**
23 * Resolves license identifiers to their corresponding template filenames.
24 *
25 * This interface checks whether a given license is supported and maps it
26 * to the appropriate license template file for content generation.
27 */
28interface ResolverInterface
29{
30    /**
31     * Resolves a license identifier to its template filename.
32     *
33     * @param string $license The license identifier to resolve
34     *
35     * @return string|null The template filename if supported, or null if not
36     */
37    public function resolve(string $license): ?string;
38}