PHP Class Phan\CLI

Mostra file Open project: etsy/phan Class Usage Examples

Public Methods

Method Description
__construct ( ) Create and read command line arguments, configuring \Phan\Config as a side effect.
getFileList ( ) : array
getOutput ( ) : Symfony\Component\Console\Output\OutputInterface
progress ( string $msg, float $p ) : null Update a progress bar on the screen

Private Methods

Method Description
directoryNameToFileList ( string $directory_name ) : array
maybeReadConfigFile ( ) Look for a .phan/config file up to a few directories up the hierarchy and apply anything in there to the configuration.
usage ( string $msg = '' )

Method Details

__construct() public method

Create and read command line arguments, configuring \Phan\Config as a side effect.
public __construct ( )

getFileList() public method

public getFileList ( ) : array
return array Get the set of files to analyze

getOutput() public method

public getOutput ( ) : Symfony\Component\Console\Output\OutputInterface
return Symfony\Component\Console\Output\OutputInterface

progress() public static method

Update a progress bar on the screen
public static progress ( string $msg, float $p ) : null
$msg string A short message to display with the progress meter
$p float The percentage to display
return null