PHP Class Webmozart\Console\UI\Rectangle

Since: 1.0
Author: Bernhard Schussek ([email protected])
Datei anzeigen Open project: webmozart/console

Public Methods

Method Description
__construct ( integer $width, integer $height ) Creates dimensions with the given width and height.
getHeight ( ) : integer Returns the height.
getWidth ( ) : integer Returns the width.

Method Details

__construct() public method

Creates dimensions with the given width and height.
public __construct ( integer $width, integer $height )
$width integer The width as number of printable characters.
$height integer The height as number of printable lines.

getHeight() public method

Returns the height.
public getHeight ( ) : integer
return integer The height as number of printable lines.

getWidth() public method

Returns the width.
public getWidth ( ) : integer
return integer The width as number of printable characters.