Свойство | Тип | Описание | |
---|---|---|---|
$currentFrame | |||
$frames | |||
$interval | |||
$lastFrame | |||
$lastFrameTime | |||
$output |
Метод | Описание | |
---|---|---|
__construct ( Symfony\Component\Console\Output\OutputInterface $output, array $frames, integer $interval = 500000 ) | ||
render ( string $placeholder = '.' ) | Display the current frame, and advance the pointer to the next one. |
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, array $frames, integer $interval = 500000 ) | ||
$output | Symfony\Component\Console\Output\OutputInterface | |
$frames | array | The frames to display. Like any animation, this works best if the frames are all the same size. |
$interval | integer | Minimum interval between frames in microseconds. |
$animation = new ConsoleAnimation($output, $frames);
do {
$animation->render();
} while ($output->isDecorated());