display(); } while ( $dialog->hasValidResult() === false ); return $dialog->getResult(); } /** * Returns a line from STDIN. * The returned line is fully trimmed. * * @return string */ public static function readLine() { return ( trim( fgets( STDIN ) ) ); } } ?>