$this->output =
$output;
$format ??=
$this->
determineBestFormat();
$indicatorValues ??=
['-', '\\', '|', '/'
];
$indicatorValues =
array_values($indicatorValues);
if (2 > \
count($indicatorValues)) { throw new InvalidArgumentException('Must have at least 2 indicator value characters.'
);
} $this->format = self::
getFormatDefinition($format);
$this->indicatorChangeInterval =
$indicatorChangeInterval;
$this->indicatorValues =
$indicatorValues;
$this->startTime =
time();
} /**
* Sets the current indicator message.
*
* @return void
*/
public function setMessage(?string
$message) {