PHP Class Phan\Phan

Inheritance: implements Phan\Output\IgnoredFilesFilterInterface
Afficher le fichier Open project: etsy/phan Class Usage Examples

Méthodes publiques

Свойство Type Description
$printer Phan\Output\IssuePrinterInterface

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

analyzeFileList() public static méthode

Analyze the given set of files and emit any issues found to STDOUT.
See also: 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
Résultat boolean We emit messages to the configured printer and return true if issues were found.

expandedFileList() public static méthode

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.
Résultat array Get an expanded list of files and dependencies for the given file list

getIssueCollector() public static méthode

public static getIssueCollector ( ) : Phan\Output\IssueCollectorInterface
Résultat Phan\Output\IssueCollectorInterface

isFilenameIgnored() public méthode

public isFilenameIgnored ( string $filename ) : boolean
$filename string
Résultat boolean True if filename is ignored during analysis

setIssueCollector() public static méthode

public static setIssueCollector ( Phan\Output\IssueCollectorInterface $issueCollector ) : void
$issueCollector Phan\Output\IssueCollectorInterface
Résultat void

setPrinter() public static méthode

public static setPrinter ( Phan\Output\IssuePrinterInterface $printer ) : void
$printer Phan\Output\IssuePrinterInterface
Résultat void

Property Details

$printer public_oe static_oe property

public static IssuePrinterInterface,Phan\Output $printer
Résultat Phan\Output\IssuePrinterInterface