PHP Класс Phulp\Output

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$quiet boolean

Защищенные свойства (Protected)

Свойство Тип Описание
$err resource The resource for err
$out resource The resource for out

Открытые методы

Метод Описание
colorize ( string $string, string $color ) : string This method is used to colorize some text
err ( string $string ) : void This method is used to send some text to STDERR
out ( string $string ) : void This method is used to send some text to STDOUT, maybe with some color

Описание методов

colorize() публичный статический Метод

This method is used to colorize some text
public static colorize ( string $string, string $color ) : string
$string string the text to be colorized
$color string the color to colorize your
Результат string

err() публичный статический Метод

This method is used to send some text to STDERR
public static err ( string $string ) : void
$string string the text to be sent to STDERR
Результат void

out() публичный статический Метод

This method is used to send some text to STDOUT, maybe with some color
public static out ( string $string ) : void
$string string the text to be sent to STDOUT
Результат void

Описание свойств

$err защищенное статическое свойство

The resource for err
protected static resource $err
Результат resource

$out защищенное статическое свойство

The resource for out
protected static resource $out
Результат resource

$quiet публичное статическое свойство

public static bool $quiet
Результат boolean