2021-11-01 18:04:42 +01:00
|
|
|
<?php
|
2022-01-21 15:53:06 +01:00
|
|
|
|
2021-11-01 18:04:42 +01:00
|
|
|
namespace Psalm\Plugin;
|
|
|
|
|
|
|
|
use Psalm\Internal\Analyzer\FileAnalyzer;
|
|
|
|
use Psalm\Internal\Scanner\FileScanner;
|
|
|
|
|
|
|
|
interface FileExtensionsInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param string $fileExtension e.g. `'html'`
|
|
|
|
* @param class-string<FileScanner> $className
|
|
|
|
*/
|
|
|
|
public function addFileTypeScanner(string $fileExtension, string $className): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $fileExtension e.g. `'html'`
|
|
|
|
* @param class-string<FileAnalyzer> $className
|
|
|
|
*/
|
|
|
|
public function addFileTypeAnalyzer(string $fileExtension, string $className): void;
|
|
|
|
}
|