Overview

Namespaces

  • Net
    • Bazzline
      • Component
        • Cli
          • Environment

Classes

  • CommandLineEnvironment
  • Overview
  • Namespace
  • Class

Class CommandLineEnvironment

Namespace: Net\Bazzline\Component\Cli\Environment
Located at CommandLineEnvironment.php
Methods summary
public
# __construct( array $argv )

Parameters

$argv
public boolean
# beVerbose( )

Returns

boolean
public
# execute( Callable $instruction, string $usage )

$instruction is called with argument CommandLineEnvironment \Exception thrown by $instruction are handled

$instruction is called with argument CommandLineEnvironment \Exception thrown by $instruction are handled

Parameters

$instruction
$usage

Throws

InvalidArgumentException
public Net\Bazzline\Component\Cli\Arguments\Arguments
# getArguments( )

Returns

Net\Bazzline\Component\Cli\Arguments\Arguments
public Net\Bazzline\Component\Toolbox\Scalar\Text
# getText( )

Returns

Net\Bazzline\Component\Toolbox\Scalar\Text
public
# overwriteDefaultExecuteExceptionHandler( callable $handler )

Handler is called with arguments: \Exception $exception string $usage

Handler is called with arguments: \Exception $exception string $usage

Parameters

$handler

Throws

InvalidArgumentException
public
# output( integer|float|string|array $scalarOrArrayOfScalars )

Parameters

$scalarOrArrayOfScalars

Throws

InvalidArgumentException
public
# outputIfVerbosityIsEnabled( integer|float|string|array $scalarOrArrayOfScalars )

Parameters

$scalarOrArrayOfScalars
PHP Cli Environment Component by bazzline.net API documentation generated by ApiGen