PHP Class Phan\Config

See ./phan -h for command line usage, or take a look at \Phan\CLI.php for more details on CLI usage.
Datei anzeigen Open project: etsy/phan Class Usage Examples

Public Methods

Method Description
__get ( string $name ) : mixed
__set ( string $name, $value )
get ( ) : Config
getProjectRootDirectory ( ) : string
projectPath ( string $relative_path ) : string
setProjectRootDirectory ( string $project_root_directory ) : void

Private Methods

Method Description
__construct ( ) Disallow the constructor to force a singleton

Method Details

__get() public method

public __get ( string $name ) : mixed
$name string
return mixed

__set() public method

public __set ( string $name, $value )
$name string

get() public static method

public static get ( ) : Config
return Config Get a Configuration singleton

getProjectRootDirectory() public method

public getProjectRootDirectory ( ) : string
return string Get the root directory of the project that we're scanning

projectPath() public static method

public static projectPath ( string $relative_path ) : string
$relative_path string
return string The relative path appended to the project root directory.

setProjectRootDirectory() public method

public setProjectRootDirectory ( string $project_root_directory ) : void
$project_root_directory string Set the root directory of the project that we're scanning
return void