PHP Class GrumPHP\Collection\ProcessArgumentsCollection

Inheritance: extends Doctrine\Common\Collections\ArrayCollection
Exibir arquivo Open project: phpro/grumphp Class Usage Examples

Public Methods

Method Description
addArgumentArray ( string $argument, array $values )
addArgumentArrayWithSeparatedValue ( $argument, array $values ) Some CLI tools prefer to split the argument and the value.
addCommaSeparatedFiles ( FilesCollection $files )
addFiles ( FilesCollection $files )
addOptionalArgument ( string $argument, string $value )
addOptionalArgumentWithSeparatedValue ( string $argument, string $value )
addOptionalCommaSeparatedArgument ( string $argument, array $values, string $delimiter = ',' )
addRequiredArgument ( string $argument, string $value )
addSeparatedArgumentArray ( string $argument, array $values )
forExecutable ( string $executable ) : ProcessArgumentsCollection

Method Details

addArgumentArray() public method

public addArgumentArray ( string $argument, array $values )
$argument string
$values array

addArgumentArrayWithSeparatedValue() public method

Some CLI tools prefer to split the argument and the value.
public addArgumentArrayWithSeparatedValue ( $argument, array $values )
$argument
$values array

addCommaSeparatedFiles() public method

public addCommaSeparatedFiles ( FilesCollection $files )
$files FilesCollection

addFiles() public method

public addFiles ( FilesCollection $files )
$files FilesCollection

addOptionalArgument() public method

public addOptionalArgument ( string $argument, string $value )
$argument string
$value string

addOptionalArgumentWithSeparatedValue() public method

public addOptionalArgumentWithSeparatedValue ( string $argument, string $value )
$argument string
$value string

addOptionalCommaSeparatedArgument() public method

public addOptionalCommaSeparatedArgument ( string $argument, array $values, string $delimiter = ',' )
$argument string
$values array
$delimiter string

addRequiredArgument() public method

public addRequiredArgument ( string $argument, string $value )
$argument string
$value string

addSeparatedArgumentArray() public method

public addSeparatedArgumentArray ( string $argument, array $values )
$argument string
$values array

forExecutable() public static method

public static forExecutable ( string $executable ) : ProcessArgumentsCollection
$executable string
return ProcessArgumentsCollection