@@ -76,42 +76,6 @@ public function setMessage($message)
76
76
$ this ->display ();
77
77
}
78
78
79
- /**
80
- * Gets the current indicator message.
81
- *
82
- * @return string|null
83
- *
84
- * @internal for PHP 5.3 compatibility
85
- */
86
- public function getMessage ()
87
- {
88
- return $ this ->message ;
89
- }
90
-
91
- /**
92
- * Gets the progress bar start time.
93
- *
94
- * @return int The progress bar start time
95
- *
96
- * @internal for PHP 5.3 compatibility
97
- */
98
- public function getStartTime ()
99
- {
100
- return $ this ->startTime ;
101
- }
102
-
103
- /**
104
- * Gets the current animated indicator character.
105
- *
106
- * @return string
107
- *
108
- * @internal for PHP 5.3 compatibility
109
- */
110
- public function getCurrentValue ()
111
- {
112
- return $ this ->indicatorValues [$ this ->indicatorCurrent % count ($ this ->indicatorValues )];
113
- }
114
-
115
79
/**
116
80
* Starts the indicator output.
117
81
*
@@ -294,13 +258,13 @@ private static function initPlaceholderFormatters()
294
258
{
295
259
return array (
296
260
'indicator ' => function (ProgressIndicator $ indicator ) {
297
- return $ indicator ->getCurrentValue () ;
261
+ return $ indicator ->indicatorValues [ $ indicator -> indicatorCurrent % count ( $ indicator -> indicatorValues )] ;
298
262
},
299
263
'message ' => function (ProgressIndicator $ indicator ) {
300
- return $ indicator ->getMessage () ;
264
+ return $ indicator ->message ;
301
265
},
302
266
'elapsed ' => function (ProgressIndicator $ indicator ) {
303
- return Helper::formatTime (time () - $ indicator ->getStartTime () );
267
+ return Helper::formatTime (time () - $ indicator ->startTime );
304
268
},
305
269
'memory ' => function () {
306
270
return Helper::formatMemory (memory_get_usage (true ));
0 commit comments