1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 06:58:41 +01:00
psalm/src/Psalm/Progress/DebugProgress.php
2022-02-05 23:51:03 +02:00

41 lines
772 B
PHP

<?php
namespace Psalm\Progress;
use function error_reporting;
use const E_ALL;
final class DebugProgress extends Progress
{
public function setErrorReporting(): void
{
error_reporting(E_ALL);
}
public function debug(string $message): void
{
$this->write($message);
}
public function startScanningFiles(): void
{
$this->write('Scanning files...' . "\n");
}
public function startAnalyzingFiles(): void
{
$this->write('Analyzing files...' . "\n");
}
public function startAlteringFiles(): void
{
$this->write('Updating files...' . "\n");
}
public function alterFileDone(string $file_name): void
{
$this->write('Altered ' . $file_name . "\n");
}
}