PHP Class Webmozart\Console\Args\ArgvArgs

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Webmozart\Console\Api\Args\RawArgs
显示文件 Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( array $argv = null ) Creates the console arguments.
getScriptName ( )
getTokens ( )
hasToken ( $token )
toString ( $scriptName = true )

Method Details

__construct() public method

Creates the console arguments.
public __construct ( array $argv = null )
$argv array The contents of the "argv" variable or `null` to read the global "argv" variable.

getScriptName() public method

public getScriptName ( )

getTokens() public method

public getTokens ( )

hasToken() public method

public hasToken ( $token )

toString() public method

public toString ( $scriptName = true )