PHP Класс Phan\Phan

Наследование: implements Phan\Output\IgnoredFilesFilterInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$printer Phan\Output\IssuePrinterInterface

Открытые методы

Метод Описание
analyzeFileList ( CodeBase $code_base, array $file_path_list ) : boolean Analyze the given set of files and emit any issues found to STDOUT.
expandedFileList ( CodeBase $code_base, array $file_path_list ) : array
getIssueCollector ( ) : Phan\Output\IssueCollectorInterface
isFilenameIgnored ( string $filename ) : boolean
setIssueCollector ( Phan\Output\IssueCollectorInterface $issueCollector ) : void
setPrinter ( Phan\Output\IssuePrinterInterface $printer ) : void

Приватные методы

Метод Описание
collectSerializedResults ( array $results ) Take an array of serialized issues, deserialize them and then add them to the issue collector.
display ( ) : void Emit all collected issues
dumpSignaturesToFile ( CodeBase $code_base, string $filename ) : integer Save json encoded function&method signature to a map.
isExcludedAnalysisFile ( string $file_path ) : boolean

Описание методов

analyzeFileList() публичный статический Метод

Analyze the given set of files and emit any issues found to STDOUT.
См. также: Phan\CodeBase
public static analyzeFileList ( CodeBase $code_base, array $file_path_list ) : boolean
$code_base CodeBase A code base needs to be passed in because we require it to be initialized before any classes or files are loaded.
$file_path_list array A list of files to scan
Результат boolean We emit messages to the configured printer and return true if issues were found.

expandedFileList() публичный статический Метод

public static expandedFileList ( CodeBase $code_base, array $file_path_list ) : array
$code_base CodeBase A code base needs to be passed in because we require it to be initialized before any classes or files are loaded.
$file_path_list array A set of files to expand with the set of dependencies on those files.
Результат array Get an expanded list of files and dependencies for the given file list

getIssueCollector() публичный статический Метод

public static getIssueCollector ( ) : Phan\Output\IssueCollectorInterface
Результат Phan\Output\IssueCollectorInterface

isFilenameIgnored() публичный Метод

public isFilenameIgnored ( string $filename ) : boolean
$filename string
Результат boolean True if filename is ignored during analysis

setIssueCollector() публичный статический Метод

public static setIssueCollector ( Phan\Output\IssueCollectorInterface $issueCollector ) : void
$issueCollector Phan\Output\IssueCollectorInterface
Результат void

setPrinter() публичный статический Метод

public static setPrinter ( Phan\Output\IssuePrinterInterface $printer ) : void
$printer Phan\Output\IssuePrinterInterface
Результат void

Описание свойств

$printer публичное статическое свойство

public static IssuePrinterInterface,Phan\Output $printer
Результат Phan\Output\IssuePrinterInterface