PHP Class lithium\console\Response

Inheritance: extends lithium\core\Object
Afficher le fichier Open project: unionofrad/lithium Class Usage Examples

Méthodes publiques

Свойство Type Description
$error resource Error stream, STDERR
$output resource Output stream, STDOUT
$status integer It should be expected that only status codes in the range of 0-255 can be properly evaluated.

Méthodes publiques

Méthode Description
__construct ( array $config = [] ) : void Constructor.
__destruct ( ) : void Destructor. Closes streams.
error ( string $error ) : mixed Writes string to error stream
output ( string $output ) : mixed Writes string to output stream
styles ( array | boolean $styles = [] ) : array Handles styling output.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $config = [] ) : void
$config array Available configuration options are: - `'output'` _resource|null_ - `'error'` _resource|null_
Résultat void

__destruct() public méthode

Destructor. Closes streams.
public __destruct ( ) : void
Résultat void

error() public méthode

Writes string to error stream
public error ( string $error ) : mixed
$error string
Résultat mixed

output() public méthode

Writes string to output stream
public output ( string $output ) : mixed
$output string
Résultat mixed

styles() public méthode

Handles styling output.
public styles ( array | boolean $styles = [] ) : array
$styles array | boolean
Résultat array

Property Details

$error public_oe property

Error stream, STDERR
public resource $error
Résultat resource

$output public_oe property

Output stream, STDOUT
public resource $output
Résultat resource

$status public_oe property

It should be expected that only status codes in the range of 0-255 can be properly evaluated.
See also: lithium\console\Command
public int $status
Résultat integer