1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Command\ErrorFormatter;
4:
5: use PHPStan\Command\AnalysisResult;
6: use PHPStan\Command\Output;
7:
8: /** @api */
9: interface ErrorFormatter
10: {
11:
12: /**
13: * Formats the errors and outputs them to the console.
14: *
15: * @return int Error code.
16: */
17: public function formatErrors(
18: AnalysisResult $analysisResult,
19: Output $output,
20: ): int;
21:
22: }
23: