PHP Class PhpBench\Console\CharacterReader

Show file Open project: dantleech/phpbench

Public Methods

Method Description
__construct ( ) If readline is installed, then prevent the user having to press in order to paginate.
read ( ) : string Wait for a single character input and return it.

Method Details

__construct() public method

If readline is installed, then prevent the user having to press in order to paginate.
public __construct ( )

read() public method

Wait for a single character input and return it.
public read ( ) : string
return string