PHP Класс Webmozart\Console\UI\Style\BorderStyle

Use {@link none()}, {@link ascii()} or {@link solid()} to obtain predefined border styles.
С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ascii ( ) : BorderStyle A style that uses ASCII characters only.
getCornerBLChar ( ) : string Returns the character used to draw a corner on the bottom left.
getCornerBRChar ( ) : string Returns the character used to draw a corner on the bottom right.
getCornerTLChar ( ) : string Returns the character used to draw a corner on the top left.
getCornerTRChar ( ) : string Returns the character used to draw a corner on the top right.
getCrossingBChar ( ) : string Returns the character used to draw a crossing at the bottom.
getCrossingCChar ( ) : string Returns the character used to draw a crossing at the center.
getCrossingLChar ( ) : string Returns the character used to draw a crossing on the left.
getCrossingRChar ( ) : string Returns the character used to draw a crossing on the right.
getCrossingTChar ( ) : string Returns the character used to draw a crossing at the top.
getLineHBChar ( ) : string Returns the character used to draw a horizontal line at the bottom.
getLineHCChar ( ) : string Returns the character used to draw a horizontal line at the center.
getLineHTChar ( ) : string Returns the character used to draw a horizontal line at the top.
getLineVCChar ( ) : string Returns the character used to draw a vertical line in the middle.
getLineVLChar ( ) : string Returns the character used to draw a vertical line on the left.
getLineVRChar ( ) : string Returns the character used to draw a vertical line on the right.
getStyle ( ) : Style Returns the border style.
none ( ) : BorderStyle A borderless style.
setCornerBLChar ( string $char ) : static Sets the character used to draw a corner on the bottom left.
setCornerBRChar ( string $char ) : static Sets the character used to draw a corner on the bottom right.
setCornerTLChar ( string $char ) : static Sets the character used to draw a corner on the top left.
setCornerTRChar ( string $char ) : static Sets the character used to draw a corner on the top right.
setCrossingBChar ( string $char ) : static Sets the character used to draw a crossing at the bottom.
setCrossingCChar ( string $char ) : static Sets the character used to draw a crossing at the center.
setCrossingLChar ( string $char ) : static Sets the character used to draw a crossing on the left.
setCrossingRChar ( string $char ) : static Sets the character used to draw a crossing on the right.
setCrossingTChar ( string $char ) : static Sets the character used to draw a crossing at the top.
setLineHBChar ( string $char ) : static Sets the character used to draw a horizontal line at the bottom.
setLineHCChar ( string $char ) : static Sets the character used to draw a horizontal line at the center.
setLineHTChar ( string $char ) : static Sets the character used to draw a horizontal line at the top.
setLineVCChar ( string $char ) : static Sets the character used to draw a vertical line in the middle.
setLineVLChar ( string $char ) : static Sets the character used to draw a vertical line on the left.
setLineVRChar ( string $char ) : static Sets the character used to draw a vertical line on the right.
setStyle ( Style $style ) : static Sets the border style.
solid ( ) : BorderStyle A style that uses Unicode characters to draw solid lines.

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

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

A style that uses ASCII characters only.
public static ascii ( ) : BorderStyle
Результат BorderStyle The style.

getCornerBLChar() публичный Метод

Returns the character used to draw a corner on the bottom left.
public getCornerBLChar ( ) : string
Результат string The corner character.

getCornerBRChar() публичный Метод

Returns the character used to draw a corner on the bottom right.
public getCornerBRChar ( ) : string
Результат string The corner character.

getCornerTLChar() публичный Метод

Returns the character used to draw a corner on the top left.
public getCornerTLChar ( ) : string
Результат string The corner character.

getCornerTRChar() публичный Метод

Returns the character used to draw a corner on the top right.
public getCornerTRChar ( ) : string
Результат string The corner character.

getCrossingBChar() публичный Метод

Returns the character used to draw a crossing at the bottom.
public getCrossingBChar ( ) : string
Результат string The crossing character.

getCrossingCChar() публичный Метод

Returns the character used to draw a crossing at the center.
public getCrossingCChar ( ) : string
Результат string The crossing character.

getCrossingLChar() публичный Метод

Returns the character used to draw a crossing on the left.
public getCrossingLChar ( ) : string
Результат string The crossing character.

getCrossingRChar() публичный Метод

Returns the character used to draw a crossing on the right.
public getCrossingRChar ( ) : string
Результат string The crossing character.

getCrossingTChar() публичный Метод

Returns the character used to draw a crossing at the top.
public getCrossingTChar ( ) : string
Результат string The crossing character.

getLineHBChar() публичный Метод

Returns the character used to draw a horizontal line at the bottom.
public getLineHBChar ( ) : string
Результат string The line character.

getLineHCChar() публичный Метод

Returns the character used to draw a horizontal line at the center.
public getLineHCChar ( ) : string
Результат string The line character.

getLineHTChar() публичный Метод

Returns the character used to draw a horizontal line at the top.
public getLineHTChar ( ) : string
Результат string The line character.

getLineVCChar() публичный Метод

Returns the character used to draw a vertical line in the middle.
public getLineVCChar ( ) : string
Результат string The line character.

getLineVLChar() публичный Метод

Returns the character used to draw a vertical line on the left.
public getLineVLChar ( ) : string
Результат string The line character.

getLineVRChar() публичный Метод

Returns the character used to draw a vertical line on the right.
public getLineVRChar ( ) : string
Результат string The line character.

getStyle() публичный Метод

Returns the border style.
public getStyle ( ) : Style
Результат Webmozart\Console\Api\Formatter\Style The border style.

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

A borderless style.
public static none ( ) : BorderStyle
Результат BorderStyle The style.

setCornerBLChar() публичный Метод

Sets the character used to draw a corner on the bottom left.
public setCornerBLChar ( string $char ) : static
$char string The corner character.
Результат static The current instance.

setCornerBRChar() публичный Метод

Sets the character used to draw a corner on the bottom right.
public setCornerBRChar ( string $char ) : static
$char string The corner character.
Результат static The current instance.

setCornerTLChar() публичный Метод

Sets the character used to draw a corner on the top left.
public setCornerTLChar ( string $char ) : static
$char string The corner character.
Результат static The current instance.

setCornerTRChar() публичный Метод

Sets the character used to draw a corner on the top right.
public setCornerTRChar ( string $char ) : static
$char string The corner character.
Результат static The current instance.

setCrossingBChar() публичный Метод

Sets the character used to draw a crossing at the bottom.
public setCrossingBChar ( string $char ) : static
$char string The crossing character.
Результат static The current instance.

setCrossingCChar() публичный Метод

Sets the character used to draw a crossing at the center.
public setCrossingCChar ( string $char ) : static
$char string The crossing character.
Результат static The current instance.

setCrossingLChar() публичный Метод

Sets the character used to draw a crossing on the left.
public setCrossingLChar ( string $char ) : static
$char string The crossing character.
Результат static The current instance.

setCrossingRChar() публичный Метод

Sets the character used to draw a crossing on the right.
public setCrossingRChar ( string $char ) : static
$char string The crossing character.
Результат static The current instance.

setCrossingTChar() публичный Метод

Sets the character used to draw a crossing at the top.
public setCrossingTChar ( string $char ) : static
$char string The crossing character.
Результат static The current instance.

setLineHBChar() публичный Метод

Sets the character used to draw a horizontal line at the bottom.
public setLineHBChar ( string $char ) : static
$char string The line character.
Результат static The current instance.

setLineHCChar() публичный Метод

Sets the character used to draw a horizontal line at the center.
public setLineHCChar ( string $char ) : static
$char string The line character.
Результат static The current instance.

setLineHTChar() публичный Метод

Sets the character used to draw a horizontal line at the top.
public setLineHTChar ( string $char ) : static
$char string The line character.
Результат static The current instance.

setLineVCChar() публичный Метод

Sets the character used to draw a vertical line in the middle.
public setLineVCChar ( string $char ) : static
$char string The line character.
Результат static The current instance.

setLineVLChar() публичный Метод

Sets the character used to draw a vertical line on the left.
public setLineVLChar ( string $char ) : static
$char string The line character.
Результат static The current instance.

setLineVRChar() публичный Метод

Sets the character used to draw a vertical line on the right.
public setLineVRChar ( string $char ) : static
$char string The line character.
Результат static The current instance.

setStyle() публичный Метод

Sets the border style.
public setStyle ( Style $style ) : static
$style Webmozart\Console\Api\Formatter\Style The border style.
Результат static The current instance.

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

A style that uses Unicode characters to draw solid lines.
public static solid ( ) : BorderStyle
Результат BorderStyle The style.