Skip to content

Commit 7d9e74e

Browse files
committed
remove methods that were needed for PHP 5.3
1 parent 797e83f commit 7d9e74e

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

src/Symfony/Component/Console/Helper/ProgressIndicator.php

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -76,42 +76,6 @@ public function setMessage($message)
7676
$this->display();
7777
}
7878

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-
11579
/**
11680
* Starts the indicator output.
11781
*
@@ -294,13 +258,13 @@ private static function initPlaceholderFormatters()
294258
{
295259
return array(
296260
'indicator' => function (ProgressIndicator $indicator) {
297-
return $indicator->getCurrentValue();
261+
return $indicator->indicatorValues[$indicator->indicatorCurrent % count($indicator->indicatorValues)];
298262
},
299263
'message' => function (ProgressIndicator $indicator) {
300-
return $indicator->getMessage();
264+
return $indicator->message;
301265
},
302266
'elapsed' => function (ProgressIndicator $indicator) {
303-
return Helper::formatTime(time() - $indicator->getStartTime());
267+
return Helper::formatTime(time() - $indicator->startTime);
304268
},
305269
'memory' => function () {
306270
return Helper::formatMemory(memory_get_usage(true));

0 commit comments

Comments
 (0)