PHP 클래스 Webmozart\Console\Api\Formatter\Style

부터: 1.0
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $tag = null ) Creates a style.
bg ( string $color ) : static Sets the background color.
bgBlack ( ) : static Sets the background color to black.
bgBlue ( ) : static Sets the background color to blue.
bgCyan ( ) : static Sets the background color to cyan.
bgDefault ( ) : static Resets the background color to the system's default.
bgGreen ( ) : static Sets the background color to green.
bgMagenta ( ) : static Sets the background color to magenta.
bgRed ( ) : static Sets the background color to red.
bgWhite ( ) : static Sets the background color to white.
bgYellow ( ) : static Sets the background color to yellow.
blinking ( ) : static Enables blinking.
bold ( ) : static Sets the font weight to bold.
fg ( string $color ) : static Sets the foreground color.
fgBlack ( ) : static Sets the foreground color to black.
fgBlue ( ) : static Sets the foreground color to blue.
fgCyan ( ) : static Sets the foreground color to cyan.
fgDefault ( ) : static Resets the foreground color to the system's default.
fgGreen ( ) : static Sets the foreground color to green.
fgMagenta ( ) : static Sets the foreground color to magenta.
fgRed ( ) : static Sets the foreground color to red.
fgWhite ( ) : static Sets the foreground color to white.
fgYellow ( ) : static Sets the foreground color to yellow.
getBackgroundColor ( ) : string Returns the background color.
getForegroundColor ( ) : string Returns the foreground color.
getTag ( ) : string Returns the style's tag name.
hidden ( ) : static Hides the text.
inverse ( ) : static Enables inverse colors.
isBlinking ( ) : boolean Returns whether the text is blinking.
isBold ( ) : boolean Returns whether the text is bold.
isHidden ( ) : boolean Returns whether the text is concealed.
isInverse ( ) : boolean Returns whether the text is reversed.
isUnderlined ( ) : boolean Returns whether the text is underlined.
noTag ( ) : static Creates a style without a tag name.
notBlinking ( ) : static Disables blinking.
notBold ( ) : static Sets the font weight to normal.
notHidden ( ) : static Does not hide the text.
notInverse ( ) : static Disables inverse colors.
notUnderlined ( ) : static Disables underlining.
tag ( string $tag ) : static Creates a style with the given tag name.
underlined ( ) : static Enables underlining.

메소드 상세

__construct() 공개 메소드

Creates a style.
public __construct ( string $tag = null )
$tag string The tag name.

bg() 공개 메소드

Sets the background color.
public bg ( string $color ) : static
$color string One of the color constants.
리턴 static The current instance.

bgBlack() 공개 메소드

Sets the background color to black.
public bgBlack ( ) : static
리턴 static The current instance.

bgBlue() 공개 메소드

Sets the background color to blue.
public bgBlue ( ) : static
리턴 static The current instance.

bgCyan() 공개 메소드

Sets the background color to cyan.
public bgCyan ( ) : static
리턴 static The current instance.

bgDefault() 공개 메소드

Resets the background color to the system's default.
public bgDefault ( ) : static
리턴 static The current instance.

bgGreen() 공개 메소드

Sets the background color to green.
public bgGreen ( ) : static
리턴 static The current instance.

bgMagenta() 공개 메소드

Sets the background color to magenta.
public bgMagenta ( ) : static
리턴 static The current instance.

bgRed() 공개 메소드

Sets the background color to red.
public bgRed ( ) : static
리턴 static The current instance.

bgWhite() 공개 메소드

Sets the background color to white.
public bgWhite ( ) : static
리턴 static The current instance.

bgYellow() 공개 메소드

Sets the background color to yellow.
public bgYellow ( ) : static
리턴 static The current instance.

blinking() 공개 메소드

Enables blinking.
public blinking ( ) : static
리턴 static The current instance.

bold() 공개 메소드

Sets the font weight to bold.
public bold ( ) : static
리턴 static The current instance.

fg() 공개 메소드

Sets the foreground color.
public fg ( string $color ) : static
$color string One of the color constants.
리턴 static The current instance.

fgBlack() 공개 메소드

Sets the foreground color to black.
public fgBlack ( ) : static
리턴 static The current instance.

fgBlue() 공개 메소드

Sets the foreground color to blue.
public fgBlue ( ) : static
리턴 static The current instance.

fgCyan() 공개 메소드

Sets the foreground color to cyan.
public fgCyan ( ) : static
리턴 static The current instance.

fgDefault() 공개 메소드

Resets the foreground color to the system's default.
public fgDefault ( ) : static
리턴 static The current instance.

fgGreen() 공개 메소드

Sets the foreground color to green.
public fgGreen ( ) : static
리턴 static The current instance.

fgMagenta() 공개 메소드

Sets the foreground color to magenta.
public fgMagenta ( ) : static
리턴 static The current instance.

fgRed() 공개 메소드

Sets the foreground color to red.
public fgRed ( ) : static
리턴 static The current instance.

fgWhite() 공개 메소드

Sets the foreground color to white.
public fgWhite ( ) : static
리턴 static The current instance.

fgYellow() 공개 메소드

Sets the foreground color to yellow.
public fgYellow ( ) : static
리턴 static The current instance.

getBackgroundColor() 공개 메소드

Returns the background color.
public getBackgroundColor ( ) : string
리턴 string One of the color constants or `null` if the system's default should be used.

getForegroundColor() 공개 메소드

Returns the foreground color.
public getForegroundColor ( ) : string
리턴 string One of the color constants or `null` if the system's default should be used.

getTag() 공개 메소드

Returns the style's tag name.
public getTag ( ) : string
리턴 string The tag name or `null` if the style has no tag.

hidden() 공개 메소드

Hides the text.
public hidden ( ) : static
리턴 static The current instance.

inverse() 공개 메소드

Enables inverse colors.
public inverse ( ) : static
리턴 static The current instance.

isBlinking() 공개 메소드

Returns whether the text is blinking.
public isBlinking ( ) : boolean
리턴 boolean Returns `true` if text is formatted blinking and `false` otherwise.

isBold() 공개 메소드

Returns whether the text is bold.
public isBold ( ) : boolean
리턴 boolean Returns `true` if text is formatted bold and `false` otherwise.

isHidden() 공개 메소드

Returns whether the text is concealed.
public isHidden ( ) : boolean
리턴 boolean Returns `true` if text is formatted concealed and `false` otherwise.

isInverse() 공개 메소드

Returns whether the text is reversed.
public isInverse ( ) : boolean
리턴 boolean Returns `true` if text is formatted reversed and `false` otherwise.

isUnderlined() 공개 메소드

Returns whether the text is underlined.
public isUnderlined ( ) : boolean
리턴 boolean Returns `true` if text is formatted underlined and `false` otherwise.

noTag() 공개 정적인 메소드

Creates a style without a tag name.
또한 보기: tag()
public static noTag ( ) : static
리턴 static The created style.

notBlinking() 공개 메소드

Disables blinking.
public notBlinking ( ) : static
리턴 static The current instance.

notBold() 공개 메소드

Sets the font weight to normal.
public notBold ( ) : static
리턴 static The current instance.

notHidden() 공개 메소드

Does not hide the text.
public notHidden ( ) : static
리턴 static The current instance.

notInverse() 공개 메소드

Disables inverse colors.
public notInverse ( ) : static
리턴 static The current instance.

notUnderlined() 공개 메소드

Disables underlining.
public notUnderlined ( ) : static
리턴 static The current instance.

tag() 공개 정적인 메소드

Creates a style with the given tag name.
또한 보기: noTag()
public static tag ( string $tag ) : static
$tag string The tag name.
리턴 static The created style.

underlined() 공개 메소드

Enables underlining.
public underlined ( ) : static
리턴 static The current instance.