1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/src/Psalm/Plugin/RegistrationInterface.php
2021-09-25 16:34:36 +02:00

28 lines
742 B
PHP

<?php
namespace Psalm\Plugin;
use Psalm\Internal\Analyzer\FileAnalyzer;
use Psalm\Internal\Scanner\FileScanner;
interface RegistrationInterface
{
public function addStubFile(string $file_name): void;
/**
* @param class-string $handler
*/
public function registerHooksFromClass(string $handler): void;
/**
* @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;
}