-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResolverInterface.php
More file actions
38 lines (34 loc) · 1.15 KB
/
ResolverInterface.php
File metadata and controls
38 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
/**
* Fast Forward Development Tools for PHP projects.
*
* This file is part of fast-forward/dev-tools project.
*
* @author Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
* @license https://opensource.org/licenses/MIT MIT License
*
* @see https://github.com/php-fast-forward/
* @see https://github.com/php-fast-forward/dev-tools
* @see https://github.com/php-fast-forward/dev-tools/issues
* @see https://php-fast-forward.github.io/dev-tools/
* @see https://datatracker.ietf.org/doc/html/rfc2119
*/
namespace FastForward\DevTools\License;
/**
* 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.
*/
interface ResolverInterface
{
/**
* Resolves a license identifier to its template filename.
*
* @param string|null $license The license identifier to resolve
*
* @return string|null The template filename if supported, or null if not
*/
public function resolve(?string $license): ?string;
}