CliArgs
in package
Tags
Table of Contents
Properties
- $formatters : array<string, string|null>
- Array of formatter specifications with their output destinations Format: ['plain' => null, 'gitlab-ci' => '/path/to/report.json']
- $input : string|null
- $options : string|null
Methods
- __construct() : mixed
- Constructor
- parseArguments() : void
- parseFormatterSpec() : void
- Parse a formatter specification like "plain" or "gitlab-ci:/path/to/file.json"
Properties
$formatters
Array of formatter specifications with their output destinations Format: ['plain' => null, 'gitlab-ci' => '/path/to/report.json']
public
array<string, string|null>
$formatters
= []
$input
public
string|null
$input
= null
$options
public
string|null
$options
= null
Methods
__construct()
Constructor
public
__construct(Arguments $arguments) : mixed
Parameters
- $arguments : Arguments
-
arguments to be parsed (@see $_SERVER['argv']) Accepts "-o", "--options" '}' Accepts a string as last argument, a file path or a string containing CSS
parseArguments()
private
parseArguments(Arguments $arguments) : void
Parameters
- $arguments : Arguments
-
array of arguments to be parsed (@see $_SERVER['argv'])
parseFormatterSpec()
Parse a formatter specification like "plain" or "gitlab-ci:/path/to/file.json"
private
parseFormatterSpec(string $formatterSpec) : void
Parameters
- $formatterSpec : string