mirror of
https://github.com/danog/psalm.git
synced 2025-01-10 06:58:41 +01:00
41 lines
772 B
PHP
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");
|
|
}
|
|
}
|