mirror of
https://github.com/danog/psalm.git
synced 2025-01-10 15:09:04 +01:00
21 lines
565 B
PHP
21 lines
565 B
PHP
|
<?php
|
||
|
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;
|
||
|
}
|